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.21k stars 76 forks source link

[BUG] Can't remote connect to PS5 at all #470

Open Tsoomer opened 2 weeks ago

Tsoomer commented 2 weeks ago

Regardless of what I do or what network I try to connect from, I can't connect to my PS5. When I tried connecting via mobile hotspot the PS5 turned on, but I could not connect to it at all.

Debug Log chiaki_session_2024-11-11_22-37-24-570570.log

To Reproduce Steps to reproduce the behavior:

  1. Try to connect to a PS5 via PSN

Expected behavior I can connect to my PS5

Desktop (please complete the following information):

streetpea commented 2 weeks ago

@Tsoomer can you post a log on your home network? It’s possible your home network is incompatible with nat holepunching so no matter what external network you try it dual. You can get around this by enabling upnp on your home router. If you don’t want to enable upnp, you can also go through the manual port forwarding process

Tsoomer commented 2 weeks ago

UPNP is enabled in my home router, would a log still help?

streetpea commented 2 weeks ago

@Tsoomer yes, it’s possible you’re behind cgnat so port forwarding doesn’t work

Tsoomer commented 2 weeks ago

@Tsoomer yes, it’s possible you’re behind cgnat so port forwarding doesn’t work

Here's a log from within my network, where the connection was successful chiaki_session_2024-11-12_00-43-13-127127.log

streetpea commented 2 weeks ago

Sorry I wasn’t clear. I meant turn off discovery (click the blue WiFi icon on the console selection sceeen) and use the remote connection locally with verbose logs enabled and then post the logs.

Tsoomer commented 2 weeks ago

@streetpea Thank you for the clarification, here's a log like that. It managed to connect to the PS5 this time. chiaki_session_2024-11-12_14-20-21-100100.log

streetpea commented 2 weeks ago

@Tsoomer from that log I can see 2 things.

  1. your home router has the type of network incompatible with remote connection via psn so upnp will need to be enabled for it to work.
  2. Upnp doesn’t appear to be enabled on your home network as it fails to discover any upnp devices.
Tsoomer commented 2 weeks ago

@streetpea That's very weird, I've checked in the settings of my router and Upnp is definitely enabled there. Is there anything I can do about this?

streetpea commented 2 weeks ago

@Tsoomer can you check in your router and see if any upnp rules are set up?

Tsoomer commented 2 weeks ago

@streetpea When I go into my router into Advanced Settings > Firewall > UPnP the only options are to enable or disable UPnP. Where else could those rules be?

streetpea commented 2 weeks ago

I'm not sure. It depends on the specific router. Since upnp doesn't appear to be working, you can always manually forward ports following this: https://streetpea.github.io/chiaki-ng/setup/remoteconnection/#manual-remote-connection

streetpea commented 1 week ago

@Tsoomer it's likely you're behind CGNAT so port forwarding doesn't work. Can you login to your router and see what the external ip or WANIP is for the router for ipv4? If it's an internal ip and not an external ip you're behind CGNAT. In this scenario, port forwarding doesn't do anything because you the external ip is at your ISPs router not your router so the ports would need to be forwarded there which you don't have access to.

Tsoomer commented 1 week ago

Sorry for the late reply. I can see the WANIP and it doesn't seem to be an internal IP address, at least it doesn't look like one.

streetpea commented 1 week ago

@Tsoomer what are the first 3 digits?

Tsoomer commented 1 week ago

Of the WAN IP or the WAN IPv6?

streetpea commented 1 week ago

The wan ip

Tsoomer commented 1 week ago

The first byte is 10

streetpea commented 1 week ago

@Tsoomer if it’s 10. Something then it’s a private ip

Tsoomer commented 1 week ago

@streetpea Yes, it's 10.something, what should I do then?

streetpea commented 1 week ago

@Tsoomer you can also look at the ip whatismyip.com gives you for a connected device for ipv4. It should be the same as the wan ip. If not, it’s behind cgnat.

streetpea commented 1 week ago

@Tsoomer since you have cgnat port forwarding and upnp don’t work. Since your home router is symmetric nat (so it isn’t compatible with udp hole punching) that also won’t work. I believe the only way you can get it working with your current setup is to setup a vpn into your home network you can connect to.

streetpea commented 1 week ago

You can follow this to do so with a free vpn https://www.howtogeek.com/how-to-remote-access-your-network-using-tailscale-vpn/

A guide specifically covering various vpn setups for remote play using chiaki is here: https://github.com/williampiat3/ImprovingPSRemotePlay?tab=readme-ov-file#install-a-vpn-server. You can just substitute chiaki with chiaki-ng