streetpea / chiaki-ng

Next-Generation of Chiaki (the open-source remote play client for PlayStation)
https://streetpea.github.io/chiaki-ng/
GNU Affero General Public License v3.0
1.11k stars 72 forks source link

Allow custom ports when adding a new device to Chiaki #242

Open afrozenpeach opened 8 months ago

afrozenpeach commented 8 months ago

Is your feature request related to a problem? Please describe. We have two PS5s in the house, and would love to both be able to use remote play on those PS5s while outside the house. Theoretically it would be possible if we had Chiaki connect to a remote IP address using a specific port(s) so we could assign different ports to different PS5s.

Describe the solution you'd like PS5 remote play currently uses ports 9295-9297, 9302-9305, and 987. It would be awesome to configure those 3 ranges so that the router could forward new ports to those ranges internally.

streetpea commented 8 months ago

@jbaiter would #123 allow for multiple consoles to be used simultaneously?

jbaiter commented 8 months ago

@jbaiter would #123 allow for multiple consoles to be used simultaneously?

I think it would, but not 100% certain.

@afrozenpeach does it work with the official app? Can you remote play on multiple consoles simultaneously from outside of your home network? Can you try both with the same PSN account and with different PSN accounts for each console?

afrozenpeach commented 8 months ago

@jbaiter actually it might! i'll find out today and get back to you

afrozenpeach commented 8 months ago

@jbaiter @streetpea I did some extensive testing and it seems that both chiaki and the official remote play app seem to use the same ports. I can't come up with another way of making two remote play connections at once, besides allowing custom ports on the Chiaki side of things.

jbaiter commented 8 months ago

Thanks for testing, so even when using two PSN accounts with the official app two concurrent sessions are not possible if both consoles are behind the same NAT?

afrozenpeach commented 8 months ago

Correct. It seems both cnosoles attempt to connect to the same ports on the shared router, and (in my testing) one or both failed to connect.

My theory is that if Chiaki could connect to ports 4040-4050, and the NAT could forward 4040-4050 to [PSN's actual ports internally] it'd work flawlessly.

streetpea commented 4 months ago

@afrozenpeach can you try with the remote connection via psn added to Chiaki4deck?

github-actions[bot] commented 3 days ago

This issue is stale because it has been open for 90 days with no activity.