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.05k stars 62 forks source link

Unable to connect via PSN (Mobile Hotspot used) #348

Closed kamalcr7 closed 3 months ago

kamalcr7 commented 3 months ago

[2024-05-28 07:32:49:585585] [I] Logging to file C:/Users/kamal/AppData/Roaming/Chiaki/Chiaki/log/chiaki_session_2024-05-28_07-32-49-584584.log [2024-05-28 07:32:49:585585] [I] Chiaki Version 1.7.1 [2024-05-28 07:32:53:097097] [I] >> Created session [2024-05-28 07:32:53:097097] [I] ChiakiOpusEncoder initialized [2024-05-28 07:32:53:098098] [I] Steam Deck not found ... Steam Deck native features disabled

[2024-05-28 07:32:53:102102] [I] Duid: 00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914 [2024-05-28 07:32:55:753753] [I] >> Started session [2024-05-28 07:33:10:622622] [I] Failed to find UPnP-capable devices on network: err=0 [2024-05-28 07:33:17:028028] [E] remote/stun.h: Failed to receive STUN response, error was 10060 [2024-05-28 07:33:17:028028] [W] Failed to get external address from stun.1und1.de:3478, retrying with another STUN server... [2024-05-28 07:33:18:541541] [I] Calculating packet allocation based on 4 responses with the same address [2024-05-28 07:33:18:541541] [W] Got different allocation increment calculations from different ports [2024-05-28 07:33:20:174174] [I] check_candidate: Resending requests to all candidates TRY 1... waiting for 1st response [2024-05-28 07:33:20:675675] [I] check_candidate: Resending requests to all candidates TRY 2... waiting for 1st response [2024-05-28 07:33:21:176176] [I] check_candidate: Resending requests to all candidates TRY 3... waiting for 1st response [2024-05-28 07:33:21:677677] [I] check_candidate: Resending requests to all candidates TRY 4... waiting for 1st response [2024-05-28 07:33:22:177177] [I] check_candidate: Resending requests to all candidates TRY 5... waiting for 1st response [2024-05-28 07:33:22:678678] [I] check_candidate: Resending requests to all candidates TRY 6... waiting for 1st response [2024-05-28 07:33:23:178178] [I] check_candidate: Resending requests to all candidates TRY 7... waiting for 1st response [2024-05-28 07:33:23:678678] [I] check_candidate: Resending requests to all candidates TRY 8... waiting for 1st response [2024-05-28 07:33:24:178178] [I] check_candidate: Resending requests to all candidates TRY 9... waiting for 1st response [2024-05-28 07:33:24:679679] [I] check_candidate: Resending requests to all candidates TRY 10... waiting for 1st response [2024-05-28 07:33:25:179179] [I] check_candidate: Resending requests to all candidates TRY 11... waiting for 1st response [2024-05-28 07:33:25:680680] [I] check_candidate: Resending requests to all candidates TRY 12... waiting for 1st response [2024-05-28 07:33:26:181181] [I] check_candidate: Resending requests to all candidates TRY 13... waiting for 1st response [2024-05-28 07:33:26:681681] [I] check_candidate: Resending requests to all candidates TRY 14... waiting for 1st response [2024-05-28 07:33:27:181181] [I] check_candidate: Resending requests to all candidates TRY 15... waiting for 1st response [2024-05-28 07:33:27:682682] [I] check_candidate: Resending requests to all candidates TRY 16... waiting for 1st response [2024-05-28 07:33:28:183183] [I] check_candidate: Resending requests to all candidates TRY 17... waiting for 1st response [2024-05-28 07:33:28:684684] [I] check_candidate: Resending requests to all candidates TRY 18... waiting for 1st response [2024-05-28 07:33:29:184184] [I] check_candidate: Resending requests to all candidates TRY 19... waiting for 1st response [2024-05-28 07:33:29:685685] [I] check_candidate: Resending requests to all candidates TRY 20... waiting for 1st response [2024-05-28 07:33:30:186186] [E] check_candidate: Select timed out [2024-05-28 07:33:30:186186] [E] chiaki_holepunch_session_punch_holes: Failed to find reachable candidate for control connection. [2024-05-28 07:33:30:186186] [E] !! Failed to punch hole for control connection. [2024-05-28 07:33:30:579579] [I] chiaki_holepunch_session_fini: Holepunch session deleted. [2024-05-28 07:33:30:579579] [E] websocket_thread_func: Select canceled.

streetpea commented 3 months ago

@kamalcr7 it looks you are behind a currently unsupported network type (a symmetric nat with random allocation). Are you able to connect using the official remote play app on this phone?

kamalcr7 commented 3 months ago

Yes i am able too...

streetpea commented 3 months ago

@kamalcr7 it would be extremely helpful then if you could use this hotspot with a pc and the official remote play app and use the free trial of this app https://www.httpdebugger.com/ to capture a session of the http traffic when using remote play via the cellular network as well as a wireshark capture of the same session https://www.wireshark.org/ and email these to me at streetpea@proton.me This will enable me to reverse engineer what the official app is doing so that we can support this network type for Chiaki4deck as well as share the information with the developer of the psplay app so he can support it there as well.

I would capture these sessions myself but my iPhone cellular carrier doesn’t use random symmetric nat so I can’t capture a session where it’s exhibiting the behavior necessary to work with this network type.

kamalcr7 commented 3 months ago

@streetpea , I just tried with the official remote play now via mobile hotspot and i cant connect to it. I did some digging. My Hotspot uses NAT type 3 which may be the reason why i am having difficulty. You have any idea on this?

Am i am able to change it or have any options to change it to NAT type 2 or its in the hands of my carrier?

streetpea commented 3 months ago

Ah it’s possible you were connected to wifi on your phone and using that for the remote connection successfully but then when using data for the personal hotspot (which actually uses your cellular data) it fails. This is actually up to the cellular data provider, so it’s unlikely you would be able to switch this without using a different provider.

streetpea commented 3 months ago

@kamalcr7 can you try this build?

It implements a new method of port guessing for a random symmetric NAT

Build setup Instructions:

  1. Download the attached file io.github.streetpea.Chiaki4deck-psn.txt
  2. Rename the file to io.github.streetpea.Chiaki4deck-psn.flatpakref
  3. Install the flatpak with: flatpak install --user -y ~/Downloads/io.github.streetpea.Chiaki4deck-psn.flatpakref replacing the ~/Downloads/io.github.streetpea.Chiaki4deck-psn.flatpakref with the path to the flatpakref file you created
  4. Open the newly installed dev flatpak either via the menu or with flatpak run io.github.streetpea.Chiaki4deck-psn
  5. Close the flatpak
  6. Copy over the settings from the main flatpak with: cp ~/.var/app/io.github.streetpea.Chiaki4deck/config/Chiaki/Chiaki.conf ~/.var/app/io.github.streetpea.Chiaki4deck-psn/config/Chiaki/Chiaki.conf
  7. Launch the app again and use
kamalcr7 commented 3 months ago

@streetpea i have tried it and it still failed to connect. I still believe that the issue is with my mobile hotspot being NAT 3. I dont think my Carrier provider can help me change it as they are strict . My Wifi provider as well doesn't allow port forwarding. I guess Im a lost cause haha. Thanks so much btw for your help and time, i really do appreciate it.

[2024-05-31 07:53:45:269269] [I] Logging to file /home/deck/.var/app/io.github.streetpea.Chiaki4deck-psn/data/Chiaki/Chiaki/log/chiaki_session_2024-05-31_07-53-45-269269.log [2024-05-31 07:53:45:269269] [I] Chiaki Version 1.6.6 [2024-05-31 07:53:45:269269] [I] Trying to use hardware decoder "vaapi" [2024-05-31 07:53:45:283283] [I] Using hardware decoder "vaapi" with pix_fmt=vaapi [2024-05-31 07:53:45:283283] [I] ChiakiOpusEncoder initialized [2024-05-31 07:53:45:292292] [I] Connected Steam Deck ... gyro online

[2024-05-31 07:53:45:293293] [I] Controller 0 opened: "Microsoft X-Box 360 pad 0 (030079f6de280000ff11000001000000)" [2024-05-31 07:53:47:719719] [I] >> Created session [2024-05-31 07:53:47:719719] [I] Duid: 00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914 [2024-05-31 07:54:18:113113] [E] wait_for_notification: Timed out waiting for holepunch session messages [2024-05-31 07:54:18:113113] [E] chiaki_holepunch_session_start: Timed out waiting for holepunch session start notifications. [2024-05-31 07:54:18:113113] [E] !! Failed to start session [2024-05-31 07:54:18:533533] [I] websocket_thread_func: Holepunch session was deleted on PSN server, exiting.... [2024-05-31 07:54:18:541541] [I] chiaki_holepunch_session_fini: Holepunch session deleted.

streetpea commented 3 months ago

@kamalcr7 can you enable verbose logging and try again?

Actually the method that would possibly work for type 3 isn't allowed on the console side by Sony so it won't work. When you say you can't forward ports do you mean you can't forward ipv4 (behind cgnat) or you can't forward anything?

kamalcr7 commented 3 months ago

I believe my wifi servcie provider has blocked port forwarding entirely. I have setup ports to forward as you mentioned in your site for ps5 network but they dont seem to be open when checking with a general port checker. And yes i have enabled verbose logging, please see below logs.

[2024-05-31 08:53:50:370370] [I] Logging to file /home/deck/.var/app/io.github.streetpea.Chiaki4deck-psn/data/Chiaki/Chiaki/log/chiaki_session_2024-05-31_08-53-50-369369.log [2024-05-31 08:53:50:370370] [I] Chiaki Version 1.6.6 [2024-05-31 08:53:50:370370] [I] Trying to use hardware decoder "vaapi" [2024-05-31 08:53:50:393393] [I] Using hardware decoder "vaapi" with pix_fmt=vaapi [2024-05-31 08:53:50:393393] [V] Holepunch session state: 0 = [ ] [2024-05-31 08:53:50:393393] [I] ChiakiOpusEncoder initialized [2024-05-31 08:53:50:499499] [I] Connected Steam Deck ... gyro online

[2024-05-31 08:53:50:499499] [I] Controller 0 opened: "Steam Deck (0300f617de2800000512000010010000)" [2024-05-31 08:53:50:512512] [I] Controller 0 disconnected [2024-05-31 08:53:50:522522] [D] [libplacebo] Requested alpha compositing mode: VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR [2024-05-31 08:53:50:522522] [D] [libplacebo] Requested surface transform: VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR [2024-05-31 08:53:50:522522] [D] [libplacebo] Requested image count: 3 (min 3 max 0) [2024-05-31 08:53:50:522522] [D] [libplacebo] Requested image size: 2560x1080 (min 2560x1080 < cur 2560x1080 < max 2560x1080) [2024-05-31 08:53:50:522522] [D] [libplacebo] (Re)creating swapchain of size 2560x1080 [2024-05-31 08:53:50:539539] [D] [libplacebo] (Re)creating 2560x1080x0 texture with format rgba8: unknown [2024-05-31 08:53:50:539539] [D] [libplacebo] Allocating 47448064 memory of type 0x1 (id 0) in heap 1: unknown [2024-05-31 08:53:50:539539] [D] [libplacebo] Spent 0.086 ms allocating slab [2024-05-31 08:53:51:060060] [D] [libplacebo] Garbage collected slab of size 15M from pool 0 [2024-05-31 08:53:51:060060] [D] [libplacebo] Freeing slab of size 15M [2024-05-31 08:53:52:083083] [V] chiaki_holepunch_session_create: Created websocket thread [2024-05-31 08:53:52:083083] [V] chiaki_holepunch_session_create: Waiting for websocket to open... [2024-05-31 08:53:53:398398] [V] websocket_thread_func: Connected to push notification WebSocket wss://44-232-96-0-pushcl.np.communication.playstation.net/np/pushNotification [2024-05-31 08:53:53:399399] [V] Holepunch session state: 1 = [ ✅WS_OPEN ] [2024-05-31 08:53:53:399399] [V] http_create_session: Sending JSON: {"remotePlaySessions":[{"members":[{"accountId":"me","deviceUniqueId":"me","platform":"me","pushContexts":[{"pushContextId":"88fcabf6-809b-416e-a03b-d5996df0eb3e"}]}]}]} [2024-05-31 08:53:53:399399] [V] websocket_thread_func: PING. [2024-05-31 08:53:53:699699] [V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64 [2024-05-31 08:53:53:699699] [V] websocket_thread_func: Received PONG. [2024-05-31 08:53:54:763763] [V] websocket_thread_func: Received WebSocket frame of length 550 with flags 1 [2024-05-31 08:53:54:763763] [V] websocket_thread_func: Received WebSocket frame with 550 bytes of payload. [2024-05-31 08:53:54:763763] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:remotePlaySession:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } }, "sessionId":"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4" } }, "contexts":[ { "contextId":"88fcabf6-809b-416e-a03b-d5996df0eb3e", "sequenceNumber":1 } ] } [2024-05-31 08:53:54:764764] [V] Received notification of type 1 [2024-05-31 08:53:54:764764] [V] websocket_thread_func: Received WebSocket frame of length 736 with flags 1 [2024-05-31 08:53:54:764764] [V] websocket_thread_func: Received WebSocket frame with 736 bytes of payload. [2024-05-31 08:53:54:764764] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:members:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } }, "members":[ { "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "joinTimestamp":1717116834575, "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } ], "sessionId":"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4" } }, "contexts":[ { "contextId":"88fcabf6-809b-416e-a03b-d5996df0eb3e", "sequenceNumber":2 } ] } [2024-05-31 08:53:54:764764] [V] Received notification of type 2 [2024-05-31 08:53:54:789789] [V] http_create_session: Received JSON: {"remotePlaySessions":[{"sessionId":"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4","members":[{"accountId":"1884543128243209318","platform":"REMOTE_PLAY","deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c"}]}]} [2024-05-31 08:53:54:791791] [V] chiaki_holepunch_session_create: Sent holepunch session creation request [2024-05-31 08:53:54:791791] [V] wait_for_notification: Found notification of type 1 [2024-05-31 08:53:54:791791] [V] chiaki_holepunch_session_create: Holepunch session created. [2024-05-31 08:53:54:791791] [V] Holepunch session state: 3 = [ ✅WS_OPEN ✅CREATED ] [2024-05-31 08:53:54:791791] [V] wait_for_notification: Found notification of type 2 [2024-05-31 08:53:54:791791] [V] chiaki_holepunch_session_create: Client joined. [2024-05-31 08:53:54:791791] [V] Holepunch session state: 11 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ] [2024-05-31 08:53:54:791791] [I] >> Created session [2024-05-31 08:53:54:791791] [I] Duid: 00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914 [2024-05-31 08:53:54:791791] [V] chiaki_holepunch_session_start: Starting holepunch session 8a807dc0-9791-4628-8d3a-98a1dc7b8ff4 for device 00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914 [2024-05-31 08:53:54:792792] [V] http_start_session: Sending JSON: {"commandDetail":{"commandType":"remotePlay","duid":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914","messageDestination":"SQS","parameters":{"initialParams":"{\"accountId\":1884543128243209318,\"roomId\":0,\"sessionId\":\"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4\",\"clientType\":\"Windows\",\"data1\":\"78mABce7zB5LGEDebPN5BA==\",\"data2\":\"9wU5VezNLx6JZYibYDNmhA==\"}"},"platform":"PS5"}} [2024-05-31 08:53:55:484484] [V] http_start_session: Received JSON: {"commandId":"9220bf75-5f39-4932-b984-908cbb775720"} [2024-05-31 08:53:55:484484] [V] Holepunch session state: 27 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ] [2024-05-31 08:53:55:843843] [V] websocket_thread_func: Received WebSocket frame of length 762 with flags 1 [2024-05-31 08:53:55:844844] [V] websocket_thread_func: Received WebSocket frame with 762 bytes of payload. [2024-05-31 08:53:55:844844] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:members:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "members":[ { "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "joinTimestamp":1717116835622, "onlineId":"Kamiv78", "platform":"PROSPERO" } ], "sessionId":"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4" } }, "contexts":[ { "contextId":"88fcabf6-809b-416e-a03b-d5996df0eb3e", "sequenceNumber":3 } ] } [2024-05-31 08:53:55:844844] [V] Received notification of type 2 [2024-05-31 08:53:55:844844] [V] wait_for_notification: Found notification of type 2 [2024-05-31 08:53:55:844844] [V] Holepunch session state: 59 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ] [2024-05-31 08:53:56:634634] [V] websocket_thread_func: Received WebSocket frame of length 525 with flags 1 [2024-05-31 08:53:56:634634] [V] websocket_thread_func: Received WebSocket frame with 525 bytes of payload. [2024-05-31 08:53:56:635635] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:customData1:updated", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customData1":"dDBrVWFuUVFTaXpCZDRPWnpKVWRwUT09", "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "sessionId":"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4" } } } [2024-05-31 08:53:56:635635] [V] Received notification of type 8 [2024-05-31 08:53:56:635635] [V] wait_for_notification: Found notification of type 8 [2024-05-31 08:53:56:635635] [V] Holepunch session state: 123 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ✅CUSTOMDATA1_RECEIVED ] [2024-05-31 08:53:56:635635] [I] >> Started session [2024-05-31 08:54:01:639639] [V] websocket_thread_func: PING. [2024-05-31 08:54:01:850850] [V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64 [2024-05-31 08:54:01:850850] [V] websocket_thread_func: Received PONG. [2024-05-31 08:54:02:908908] [V] websocket_thread_func: Received WebSocket frame of length 1217 with flags 1 [2024-05-31 08:54:02:908908] [V] websocket_thread_func: Received WebSocket frame with 1217 bytes of payload. [2024-05-31 08:54:02:908908] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:sessionMessage:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "sessionId":"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4", "sessionMessage":{ "channel":"remote_play:1", "payload":"ver=1.0, type=text, body={\"action\":\"OFFER\",\"reqId\":1,\"error\":0,\"connRequest\":{\"sid\":48410,\"peerSid\":0,\"skey\":\"nRbrsolSzqDdke2qlV0CNg==\",\"natType\":2,\"candidate\":[{\"type\":\"STUN\",\"addr\":\"60.50.34.48\",\"mappedAddr\":\"0.0.0.0\",\"port\":33585,\"mappedPort\":0},{\"type\":\"STATIC\",\"addr\":\"60.50.34.48\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0},{\"type\":\"LOCAL\",\"addr\":\"192.168.1.19\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0}],\"defaultRouteMacAddr\":\"14:ae:85:5b:df:3a\",\"localPeerAddr\":{\"accountId\":\"1884543128243209318\",\"platform\":\"PROSPERO\"},\"localHashedId\":\"3m8xg3f+8wmz2FKYhjmoGRnZKyM=\"}}" } } } } [2024-05-31 08:54:02:908908] [V] Received notification of type 16 [2024-05-31 08:54:02:908908] [V] wait_for_notification: Found notification of type 16 [2024-05-31 08:54:02:908908] [E] Type field wasn't LOCAL or STATIC. [2024-05-31 08:54:02:909909] [E] session_message_parse: Unexpected JSON schema for holepunch session message. [2024-05-31 08:54:02:909909] [V] { "action":"OFFER", "reqId":1, "error":0, "connRequest":{ "sid":48410, "peerSid":0, "skey":"nRbrsolSzqDdke2qlV0CNg==", "natType":2, "candidate":[ { "type":"STUN", "addr":"60.50.34.48", "mappedAddr":"0.0.0.0", "port":33585, "mappedPort":0 }, { "type":"STATIC", "addr":"60.50.34.48", "mappedAddr":"0.0.0.0", "port":9303, "mappedPort":0 }, { "type":"LOCAL", "addr":"192.168.1.19", "mappedAddr":"0.0.0.0", "port":9303, "mappedPort":0 } ], "defaultRouteMacAddr":"14:ae:85:5b:df:3a", "localPeerAddr":{ "accountId":"1884543128243209318", "platform":"PROSPERO" }, "localHashedId":"3m8xg3f+8wmz2FKYhjmoGRnZKyM=" } } [2024-05-31 08:54:02:909909] [E] Failed to parse holepunch session message [2024-05-31 08:54:02:909909] [E] chiaki_holepunch_session_punch_holes: Failed to wait for OFFER holepunch session message. [2024-05-31 08:54:02:909909] [E] !! Failed to punch hole for control connection. [2024-05-31 08:54:03:378378] [V] websocket_thread_func: Received WebSocket frame of length 706 with flags 1 [2024-05-31 08:54:03:379379] [V] websocket_thread_func: Received WebSocket frame with 706 bytes of payload. [2024-05-31 08:54:03:379379] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:members:deleted", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } }, "members":[ { "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } ], "sessionId":"8a807dc0-9791-4628-8d3a-98a1dc7b8ff4" } }, "contexts":[ { "contextId":"88fcabf6-809b-416e-a03b-d5996df0eb3e", "sequenceNumber":4 } ] } [2024-05-31 08:54:03:379379] [V] Received notification of type 4 [2024-05-31 08:54:03:530530] [V] wait_for_notification: Found notification of type 4 [2024-05-31 08:54:03:530530] [V] Holepunch session state: 131195 = [ ✅WS_OPEN ✅DELETED ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ✅CUSTOMDATA1_RECEIVED ] [2024-05-31 08:54:03:530530] [I] chiaki_holepunch_session_fini: Holepunch session deleted. [2024-05-31 08:54:03:530530] [E] websocket_thread_func: Select canceled.

streetpea commented 3 months ago

Can you try flatpak update io.github.streetpea.Chiaki4deck-psn and try again? It turns out it had failed to upload initially so you're using the old code still.

kamalcr7 commented 3 months ago

Updated, please view below :

[2024-05-31 09:55:47:857857] [I] Logging to file /home/deck/.var/app/io.github.streetpea.Chiaki4deck-psn/data/Chiaki/Chiaki/log/chiaki_session_2024-05-31_09-55-47-857857.log [2024-05-31 09:55:47:857857] [I] Chiaki Version 1.7.1 [2024-05-31 09:55:47:857857] [I] Trying to use hardware decoder "vaapi" [2024-05-31 09:55:47:882882] [I] Using hardware decoder "vaapi" with pix_fmt=vaapi [2024-05-31 09:55:47:883883] [V] Holepunch session state: 0 = [ ] [2024-05-31 09:55:49:121121] [V] chiaki_holepunch_session_create: Created websocket thread [2024-05-31 09:55:49:121121] [V] chiaki_holepunch_session_create: Waiting for websocket to open... [2024-05-31 09:55:50:101101] [V] websocket_thread_func: Connected to push notification WebSocket wss://44-232-96-0-pushcl.np.communication.playstation.net/np/pushNotification [2024-05-31 09:55:50:102102] [V] Holepunch session state: 1 = [ ✅WS_OPEN ] [2024-05-31 09:55:50:102102] [V] http_create_session: Sending JSON: {"remotePlaySessions":[{"members":[{"accountId":"me","deviceUniqueId":"me","platform":"me","pushContexts":[{"pushContextId":"16172518-a1d8-4846-9988-69260647e799"}]}]}]} [2024-05-31 09:55:50:102102] [V] websocket_thread_func: PING. [2024-05-31 09:55:50:308308] [V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64 [2024-05-31 09:55:50:308308] [V] websocket_thread_func: Received PONG. [2024-05-31 09:55:50:487487] [V] websocket_thread_func: Received WebSocket frame of length 550 with flags 1 [2024-05-31 09:55:50:488488] [V] websocket_thread_func: Received WebSocket frame with 550 bytes of payload. [2024-05-31 09:55:50:488488] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:remotePlaySession:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } }, "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486" } }, "contexts":[ { "contextId":"16172518-a1d8-4846-9988-69260647e799", "sequenceNumber":1 } ] } [2024-05-31 09:55:50:488488] [V] Received notification of type 1 [2024-05-31 09:55:50:488488] [V] websocket_thread_func: Received WebSocket frame of length 736 with flags 1 [2024-05-31 09:55:50:488488] [V] websocket_thread_func: Received WebSocket frame with 736 bytes of payload. [2024-05-31 09:55:50:488488] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:members:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } }, "members":[ { "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "joinTimestamp":1717120550336, "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } ], "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486" } }, "contexts":[ { "contextId":"16172518-a1d8-4846-9988-69260647e799", "sequenceNumber":2 } ] } [2024-05-31 09:55:50:488488] [V] Received notification of type 2 [2024-05-31 09:55:50:545545] [V] http_create_session: Received JSON: {"remotePlaySessions":[{"sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486","members":[{"accountId":"1884543128243209318","platform":"REMOTE_PLAY","deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c"}]}]} [2024-05-31 09:55:50:547547] [V] chiaki_holepunch_session_create: Sent holepunch session creation request [2024-05-31 09:55:50:547547] [V] wait_for_notification: Found notification of type 1 [2024-05-31 09:55:50:547547] [V] chiaki_holepunch_session_create: Holepunch session created. [2024-05-31 09:55:50:547547] [V] Holepunch session state: 3 = [ ✅WS_OPEN ✅CREATED ] [2024-05-31 09:55:50:547547] [V] wait_for_notification: Found notification of type 2 [2024-05-31 09:55:50:547547] [V] chiaki_holepunch_session_create: Client joined. [2024-05-31 09:55:50:547547] [V] Holepunch session state: 11 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ] [2024-05-31 09:55:50:547547] [I] >> Created session [2024-05-31 09:55:50:547547] [I] ChiakiOpusEncoder initialized [2024-05-31 09:55:50:629629] [I] Connected Steam Deck ... gyro online

[2024-05-31 09:55:50:629629] [I] Controller 0 opened: "Steam Deck (0300f617de2800000512000010010000)" [2024-05-31 09:55:50:637637] [I] Duid: 00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914 [2024-05-31 09:55:50:637637] [V] chiaki_holepunch_session_start: Starting holepunch session a1fa1dbc-769c-4eb7-802f-8c738b418486 for the PS5 console with duid 00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914 [2024-05-31 09:55:50:638638] [V] http_start_session: Sending JSON: {"commandDetail":{"commandType":"remotePlay","duid":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914","messageDestination":"SQS","parameters":{"initialParams":"{\"accountId\":1884543128243209318,\"roomId\":0,\"sessionId\":\"a1fa1dbc-769c-4eb7-802f-8c738b418486\",\"clientType\":\"Windows\",\"data1\":\"LSLV6KC9/61guRm5Vu5ayw==\",\"data2\":\"zxrP89aWimvvznXvsE0SWA==\"}"},"platform":"PS5"}} [2024-05-31 09:55:50:639639] [I] Controller 0 disconnected [2024-05-31 09:55:50:649649] [D] [libplacebo] Requested alpha compositing mode: VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR [2024-05-31 09:55:50:649649] [D] [libplacebo] Requested surface transform: VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR [2024-05-31 09:55:50:649649] [D] [libplacebo] Requested image count: 3 (min 3 max 0) [2024-05-31 09:55:50:649649] [D] [libplacebo] Requested image size: 2560x1080 (min 2560x1080 < cur 2560x1080 < max 2560x1080) [2024-05-31 09:55:50:649649] [D] [libplacebo] (Re)creating swapchain of size 2560x1080 [2024-05-31 09:55:50:659659] [D] [libplacebo] (Re)creating 2560x1080x0 texture with format rgba8: unknown [2024-05-31 09:55:50:659659] [D] [libplacebo] Allocating 47448064 memory of type 0x1 (id 0) in heap 1: unknown [2024-05-31 09:55:50:659659] [D] [libplacebo] Spent 0.076 ms allocating slab [2024-05-31 09:55:51:138138] [V] http_start_session: Received JSON: {"commandId":"053d310c-13a1-437c-9863-036e58374180"} [2024-05-31 09:55:51:138138] [V] Holepunch session state: 27 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ] [2024-05-31 09:55:51:164164] [D] [libplacebo] Garbage collected slab of size 15M from pool 0 [2024-05-31 09:55:51:164164] [D] [libplacebo] Freeing slab of size 15M [2024-05-31 09:55:51:375375] [V] websocket_thread_func: Received WebSocket frame of length 762 with flags 1 [2024-05-31 09:55:51:375375] [V] websocket_thread_func: Received WebSocket frame with 762 bytes of payload. [2024-05-31 09:55:51:375375] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:members:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "members":[ { "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "joinTimestamp":1717120551224, "onlineId":"Kamiv78", "platform":"PROSPERO" } ], "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486" } }, "contexts":[ { "contextId":"16172518-a1d8-4846-9988-69260647e799", "sequenceNumber":3 } ] } [2024-05-31 09:55:51:375375] [V] Received notification of type 2 [2024-05-31 09:55:51:375375] [V] wait_for_notification: Found notification of type 2 [2024-05-31 09:55:51:376376] [V] Holepunch session state: 59 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ] [2024-05-31 09:55:52:148148] [V] websocket_thread_func: Received WebSocket frame of length 525 with flags 1 [2024-05-31 09:55:52:148148] [V] websocket_thread_func: Received WebSocket frame with 525 bytes of payload. [2024-05-31 09:55:52:149149] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:customData1:updated", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customData1":"NmdWcnNiSlQrTFRJbWpZeDFydWRadz09", "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486" } } } [2024-05-31 09:55:52:149149] [V] Received notification of type 8 [2024-05-31 09:55:52:149149] [V] wait_for_notification: Found notification of type 8 [2024-05-31 09:55:52:149149] [V] Holepunch session state: 123 = [ ✅WS_OPEN ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ✅CUSTOMDATA1_RECEIVED ] [2024-05-31 09:55:52:149149] [I] >> Started session [2024-05-31 09:55:57:153153] [V] websocket_thread_func: PING. [2024-05-31 09:55:57:456456] [V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64 [2024-05-31 09:55:57:457457] [V] websocket_thread_func: Received PONG. [2024-05-31 09:55:58:431431] [V] websocket_thread_func: Received WebSocket frame of length 1217 with flags 1 [2024-05-31 09:55:58:431431] [V] websocket_thread_func: Received WebSocket frame with 1217 bytes of payload. [2024-05-31 09:55:58:431431] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:sessionMessage:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486", "sessionMessage":{ "channel":"remote_play:1", "payload":"ver=1.0, type=text, body={\"action\":\"OFFER\",\"reqId\":3,\"error\":0,\"connRequest\":{\"sid\":36786,\"peerSid\":0,\"skey\":\"zvqj\/aJI5iHOUR6ARW\/FYw==\",\"natType\":2,\"candidate\":[{\"type\":\"STUN\",\"addr\":\"60.50.34.48\",\"mappedAddr\":\"0.0.0.0\",\"port\":62380,\"mappedPort\":0},{\"type\":\"STATIC\",\"addr\":\"60.50.34.48\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0},{\"type\":\"LOCAL\",\"addr\":\"192.168.1.19\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0}],\"defaultRouteMacAddr\":\"14:ae:85:5b:df:3a\",\"localPeerAddr\":{\"accountId\":\"1884543128243209318\",\"platform\":\"PROSPERO\"},\"localHashedId\":\"qldY4OH9pnp6BTSmMV24CNSa0k0=\"}}" } } } } [2024-05-31 09:55:58:431431] [V] Received notification of type 16 [2024-05-31 09:55:58:431431] [V] wait_for_notification: Found notification of type 16 [2024-05-31 09:55:58:432432] [V] Message to send: {"channel":"remote_play:1","payload":"ver=1.0, type=text, body={\"action\":\"RESULT\",\"reqId\":3,\"error\":0,\"connRequest\":{}}","to":[{"accountId":"1884543128243209318","deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914","platform":"PS5"}]} [2024-05-31 09:56:03:435435] [V] websocket_thread_func: PING. [2024-05-31 09:56:03:905905] [V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64 [2024-05-31 09:56:03:905905] [V] websocket_thread_func: Received PONG. [2024-05-31 09:56:06:923923] [I] Failed to find UPnP-capable devices on network: err=0 [2024-05-31 09:56:07:616616] [V] Got response from STUN server stun.zadarma.com:3478 [2024-05-31 09:56:07:817817] [V] Got response from STUN server stun.rynga.com:3478 [2024-05-31 09:56:08:114114] [V] Got response from STUN server stun.sip.us:3478 [2024-05-31 09:56:08:360360] [V] Got response from STUN server stun.voipcheap.com:3478 [2024-05-31 09:56:08:360360] [I] Calculating packet allocation based on 4 responses with the same address [2024-05-31 09:56:08:361361] [W] Got different allocation increment calculations from different ports. Increment 0: 51586, Increment 1: 1, Increment 2: 58002 [2024-05-31 09:56:08:361361] [V] -----------------CONNECTION REQUEST--------------------- [2024-05-31 09:56:08:361361] [V] sid: 14664 [2024-05-31 09:56:08:361361] [V] peer_sid: 36786 [2024-05-31 09:56:08:361361] [V] skey: AAAAAAAAAAAAAAAAAAAAAA== [2024-05-31 09:56:08:361361] [V] nat type 2 [2024-05-31 09:56:08:361361] [V] local hashed id Qik1M8qJdKZTOH86Xh8WWGYurYw= [2024-05-31 09:56:08:361361] [V] Message to send: {"channel":"remote_play:1","payload":"ver=1.0, type=text, body={\"action\":\"OFFER\",\"reqId\":1,\"error\":0,\"connRequest\":{\"sid\":14664,\"peerSid\":36786,\"skey\":\"AAAAAAAAAAAAAAAAAAAAAA==\",\"natType\":2,\"candidate\":[{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29312,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29313,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29314,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29315,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29316,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29317,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29318,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29319,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29320,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29321,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29322,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29323,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29324,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29325,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29326,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29327,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29328,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29329,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29330,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29331,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29332,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29333,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29334,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29335,\"mappedPort\":0},{\"type\":\"STUN\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":29336,\"mappedPort\":0},{\"type\":\"STATIC\",\"addr\":\"113.211.103.106\",\"mappedAddr\":\"0.0.0.0\",\"port\":58927,\"mappedPort\":0},{\"type\":\"LOCAL\",\"addr\":\"192.168.91.110\",\"mappedAddr\":\"0.0.0.0\",\"port\":58927,\"mappedPort\":0}],\"defaultRouteMacAddr\":\"\",\"localPeerAddr\":{\"accountId\":\"1884543128243209318\",\"platform\":\"REMOTE_PLAY\"},\"localHashedId\":\"Qik1M8qJdKZTOH86Xh8WWGYurYw=\"}}","to":[{"accountId":"1884543128243209318","deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914","platform":"PS5"}]} [2024-05-31 09:56:08:910910] [V] websocket_thread_func: PING. [2024-05-31 09:56:08:917917] [V] wait_for_notification: Found notification of type 16 [2024-05-31 09:56:08:917917] [V] Ignoring holepunch session message with action 1 [2024-05-31 09:56:09:138138] [V] websocket_thread_func: Received WebSocket frame of length 1217 with flags 1 [2024-05-31 09:56:09:138138] [V] websocket_thread_func: Received WebSocket frame with 1217 bytes of payload. [2024-05-31 09:56:09:138138] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:sessionMessage:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486", "sessionMessage":{ "channel":"remote_play:1", "payload":"ver=1.0, type=text, body={\"action\":\"OFFER\",\"reqId\":3,\"error\":0,\"connRequest\":{\"sid\":36786,\"peerSid\":0,\"skey\":\"zvqj\/aJI5iHOUR6ARW\/FYw==\",\"natType\":2,\"candidate\":[{\"type\":\"STUN\",\"addr\":\"60.50.34.48\",\"mappedAddr\":\"0.0.0.0\",\"port\":62380,\"mappedPort\":0},{\"type\":\"STATIC\",\"addr\":\"60.50.34.48\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0},{\"type\":\"LOCAL\",\"addr\":\"192.168.1.19\",\"mappedAddr\":\"0.0.0.0\",\"port\":9303,\"mappedPort\":0}],\"defaultRouteMacAddr\":\"14:ae:85:5b:df:3a\",\"localPeerAddr\":{\"accountId\":\"1884543128243209318\",\"platform\":\"PROSPERO\"},\"localHashedId\":\"qldY4OH9pnp6BTSmMV24CNSa0k0=\"}}" } } } } [2024-05-31 09:56:09:138138] [V] Received notification of type 16 [2024-05-31 09:56:09:138138] [V] Message to send: {"channel":"remote_play:1","payload":"ver=1.0, type=text, body={\"action\":\"RESULT\",\"reqId\":3,\"error\":0,\"connRequest\":{}}","to":[{"accountId":"1884543128243209318","deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914","platform":"PS5"}]} [2024-05-31 09:56:09:509509] [V] wait_for_notification: Found notification of type 16 [2024-05-31 09:56:09:509509] [V] Ignoring holepunch session message with action 1 [2024-05-31 09:56:09:509509] [V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64 [2024-05-31 09:56:09:509509] [V] websocket_thread_func: Received PONG. [2024-05-31 09:56:09:510510] [V] websocket_thread_func: Received WebSocket frame of length 628 with flags 1 [2024-05-31 09:56:09:510510] [V] websocket_thread_func: Received WebSocket frame with 628 bytes of payload. [2024-05-31 09:56:09:510510] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:sessionMessage:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486", "sessionMessage":{ "channel":"remote_play:1", "payload":"ver=1.0, type=text, body={\"action\":\"RESULT\",\"reqId\":1,\"error\":0,\"connRequest\":{}}" } } } } [2024-05-31 09:56:09:510510] [V] Received notification of type 16 [2024-05-31 09:56:09:510510] [V] wait_for_notification: Found notification of type 16 [2024-05-31 09:56:09:510510] [V] --------------STUN CANDIDATE-------------------- [2024-05-31 09:56:09:510510] [V] Address: 60.50.34.48 [2024-05-31 09:56:09:510510] [V] Mapped Address: 0.0.0.0 [2024-05-31 09:56:09:510510] [V] Port: 62380 [2024-05-31 09:56:09:510510] [V] Mapped Port: 0 [2024-05-31 09:56:09:510510] [V] --------------REMOTE CANDIDATE-------------------- [2024-05-31 09:56:09:510510] [V] Address: 60.50.34.48 [2024-05-31 09:56:09:510510] [V] Mapped Address: 0.0.0.0 [2024-05-31 09:56:09:510510] [V] Port: 9303 [2024-05-31 09:56:09:510510] [V] Mapped Port: 0 [2024-05-31 09:56:09:510510] [V] --------------LOCAL CANDIDATE--------------------- [2024-05-31 09:56:09:510510] [V] Address: 192.168.1.19 [2024-05-31 09:56:09:510510] [V] Mapped Address: 0.0.0.0 [2024-05-31 09:56:09:510510] [V] Port: 9303 [2024-05-31 09:56:09:510510] [V] Mapped Port: 0 [2024-05-31 09:56:10:012012] [I] check_candidate: Resending requests to all candidates TRY 1... waiting for 1st response [2024-05-31 09:56:10:513513] [I] check_candidate: Resending requests to all candidates TRY 2... waiting for 1st response [2024-05-31 09:56:11:014014] [I] check_candidate: Resending requests to all candidates TRY 3... waiting for 1st response [2024-05-31 09:56:11:514514] [I] check_candidate: Resending requests to all candidates TRY 4... waiting for 1st response [2024-05-31 09:56:12:015015] [I] check_candidate: Resending requests to all candidates TRY 5... waiting for 1st response [2024-05-31 09:56:12:516516] [I] check_candidate: Resending requests to all candidates TRY 6... waiting for 1st response [2024-05-31 09:56:13:017017] [I] check_candidate: Resending requests to all candidates TRY 7... waiting for 1st response [2024-05-31 09:56:13:518518] [I] check_candidate: Resending requests to all candidates TRY 8... waiting for 1st response [2024-05-31 09:56:14:018018] [I] check_candidate: Resending requests to all candidates TRY 9... waiting for 1st response [2024-05-31 09:56:14:512512] [V] websocket_thread_func: PING. [2024-05-31 09:56:14:519519] [I] check_candidate: Resending requests to all candidates TRY 10... waiting for 1st response [2024-05-31 09:56:14:788788] [V] websocket_thread_func: Received WebSocket frame of length 0 with flags 64 [2024-05-31 09:56:14:788788] [V] websocket_thread_func: Received PONG. [2024-05-31 09:56:15:020020] [I] check_candidate: Resending requests to all candidates TRY 11... waiting for 1st response [2024-05-31 09:56:15:521521] [I] check_candidate: Resending requests to all candidates TRY 12... waiting for 1st response [2024-05-31 09:56:16:021021] [I] check_candidate: Resending requests to all candidates TRY 13... waiting for 1st response [2024-05-31 09:56:16:522522] [I] check_candidate: Resending requests to all candidates TRY 14... waiting for 1st response [2024-05-31 09:56:17:023023] [I] check_candidate: Resending requests to all candidates TRY 15... waiting for 1st response [2024-05-31 09:56:17:524524] [I] check_candidate: Resending requests to all candidates TRY 16... waiting for 1st response [2024-05-31 09:56:18:025025] [I] check_candidate: Resending requests to all candidates TRY 17... waiting for 1st response [2024-05-31 09:56:18:526526] [I] check_candidate: Resending requests to all candidates TRY 18... waiting for 1st response [2024-05-31 09:56:19:026026] [I] check_candidate: Resending requests to all candidates TRY 19... waiting for 1st response [2024-05-31 09:56:19:141141] [V] websocket_thread_func: Received WebSocket frame of length 802 with flags 1 [2024-05-31 09:56:19:141141] [V] websocket_thread_func: Received WebSocket frame with 802 bytes of payload. [2024-05-31 09:56:19:141141] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:sessionMessage:created", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914", "onlineId":"Kamiv78", "platform":"PROSPERO" } }, "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486", "sessionMessage":{ "channel":"remote_play:1", "payload":"ver=1.0, type=text, body={\"action\":\"TERMINATE\",\"reqId\":4,\"error\":0,\"connRequest\":{\"sid\":36786,\"peerSid\":14664,\"skey\":\"zvqj\/aJI5iHOUR6ARW\/FYw==\",\"natType\":0,\"candidate\":[],\"defaultRouteMacAddr\":\"\",\"localPeerAddr\":,\"localHashedId\":\"\"}}" } } } } [2024-05-31 09:56:19:141141] [V] Received notification of type 16 [2024-05-31 09:56:19:527527] [I] check_candidate: Resending requests to all candidates TRY 20... waiting for 1st response [2024-05-31 09:56:20:028028] [E] check_candidate: Select timed out [2024-05-31 09:56:20:028028] [E] chiaki_holepunch_session_punch_holes: Failed to find reachable candidate for control connection. [2024-05-31 09:56:20:030030] [E] !! Failed to punch hole for control connection. [2024-05-31 09:56:20:361361] [V] websocket_thread_func: PING. [2024-05-31 09:56:20:361361] [V] websocket_thread_func: Received WebSocket frame of length 706 with flags 1 [2024-05-31 09:56:20:362362] [V] websocket_thread_func: Received WebSocket frame with 706 bytes of payload. [2024-05-31 09:56:20:362362] [V] { "version":"2.1", "method":3001, "dataType":"psn:sessionManager:sys:rps:members:deleted", "to":{ "accountId":1884543128243209318, "onlineId":"Kamiv78", "platform":[ "REMOTE_PLAY" ], "isSystemOnly":false, "toSystem":false }, "body":{ "data":{ "customProperties":{ "from":{ "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } }, "members":[ { "accountId":"1884543128243209318", "deviceUniqueId":"000000070041008039f36921b44260e82b9a8b899f6e3f2c", "onlineId":"Kamiv78", "platform":"REMOTE_PLAY" } ], "sessionId":"a1fa1dbc-769c-4eb7-802f-8c738b418486" } }, "contexts":[ { "contextId":"16172518-a1d8-4846-9988-69260647e799", "sequenceNumber":4 } ] } [2024-05-31 09:56:20:362362] [V] Received notification of type 4 [2024-05-31 09:56:20:366366] [V] wait_for_notification: Found notification of type 4 [2024-05-31 09:56:20:367367] [V] Holepunch session state: 131323 = [ ✅WS_OPEN ✅DELETED ✅CREATED ✅CLIENT_JOINED ✅DATA_SENT ✅CONSOLE_JOINED ✅CUSTOMDATA1_RECEIVED ✅CTRL_OFFER_RECEIVED ] [2024-05-31 09:56:20:367367] [I] chiaki_holepunch_session_fini: Holepunch session deleted. [2024-05-31 09:56:20:367367] [E] websocket_thread_func: Select canceled.

streetpea commented 3 months ago

It seems you have a random allocation of ports so we cannot correctly guess the port. There is another approach that could still work but unfortunately it requires the ps to accept more candidates than it allows so it's not possible to use for remote play.

streetpea commented 3 months ago

Port forwarding doesn't work for you likely because you are behind a cgnat so would need to use ipv6. Unfortunately, ps console does not support ipv6 for remote play (it only listens with ipv4 sock) so though I implemented it in Chiaki4deck it still doesn't work with the console. Since ps doesn't support there is nothing I can do on my side.

kamalcr7 commented 3 months ago

Alright I understand, i heard that VPN might help change my mobile hotspot NAT type? Is this true, this would be my last resort as in can affect with latency and stability of the connection..

streetpea commented 3 months ago

I don’t think the remote connection via psn will work with the vpn connection but the manual connection will work if you vpn into your home network (then you will basically be making a local connection using the ipv4 local address 10., 172. Or 192.) but you would need to setup a vpn on your network using a server or raspberry pi or something like that. See https://github.com/williampiat3/ImprovingPSRemotePlay?tab=readme-ov-file#install-a-vpn-server

kamalcr7 commented 3 months ago

@streetpea Just an update i Managed to connect. Not sure how, i enabled upnp on my router. But its not always sucessfull. Its a hit and miss at times. Why is that?

[2024-06-03 14:20:52:847847] [I] Logging to file /home/deck/.var/app/io.github.streetpea.Chiaki4deck-psn/data/Chiaki/Chiaki/log/chiaki_session_2024-06-03_14-20-52-847847.log [2024-06-03 14:20:52:847847] [I] Chiaki Version 1.7.1 [2024-06-03 14:20:52:847847] [I] Trying to use hardware decoder "vaapi" [2024-06-03 14:20:52:859859] [I] Using hardware decoder "vaapi" with pix_fmt=vaapi [2024-06-03 14:21:01:036036] [I] >> Created session [2024-06-03 14:21:01:037037] [I] ChiakiOpusEncoder initialized [2024-06-03 14:21:01:044044] [I] Connected Steam Deck ... gyro online

[2024-06-03 14:21:01:045045] [I] Controller 0 opened: "Microsoft X-Box 360 pad 0 (030079f6de280000ff11000001000000)" [2024-06-03 14:21:01:051051] [I] Duid: 00000007000a00c00001028a001600002ecef60d6bf7143b24f8fbeec4131914 [2024-06-03 14:21:02:686686] [I] >> Started session [2024-06-03 14:21:12:695695] [I] Failed to find UPnP-capable devices on network: err=0 [2024-06-03 14:21:15:467467] [I] Calculating packet allocation based on 4 responses with the same address [2024-06-03 14:21:15:467467] [W] Got different allocation increment calculations from different ports. Increment 0: 51785, Increment 1: 6589, Increment 2: 24177 [2024-06-03 14:21:16:912912] [I] Sent response to 203.106.115.81:24504 [2024-06-03 14:21:17:485485] [I] Sent response to 203.106.115.81:24504 [2024-06-03 14:21:17:960960] [I] Sent response to 203.106.115.81:24504 [2024-06-03 14:21:20:671671] [I] >> Punched hole for control connection! [2024-06-03 14:21:20:673673] [I] REGIST - Starting RUDP session [2024-06-03 14:21:20:942942] [I] Regist response payload (decrypted): [2024-06-03 14:21:20:942942] [I] RP-Support Cmd: 0 [2024-06-03 14:21:20:942942] [I] Regist successfully received response [2024-06-03 14:21:20:942942] [I] PS5-561 successfully registered for Remote Play [2024-06-03 14:21:20:943943] [I] Starting session request for PS5 [2024-06-03 14:21:20:943943] [I] SESSION START THREAD - Starting RUDP session [2024-06-03 14:21:21:028028] [I] Sending session request [2024-06-03 14:21:21:144144] [I] Session request successful [2024-06-03 14:21:21:155155] [I] Starting ctrl [2024-06-03 14:21:21:155155] [I] CTRL - Starting RUDP session [2024-06-03 14:21:21:261261] [I] Sending ctrl request [2024-06-03 14:21:21:353353] [I] Ctrl received http header as response [2024-06-03 14:21:21:354354] [I] Ctrl received ctrl request http response [2024-06-03 14:21:21:354354] [I] Ctrl got Server Type: 2 [2024-06-03 14:21:21:354354] [I] Ctrl connected [2024-06-03 14:21:21:454454] [I] Ctrl received Login message: success [2024-06-03 14:21:26:155155] [I] Punching hole for data connection [2024-06-03 14:21:26:445445] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:21:31:590590] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:21:34:602602] [I] Failed to find UPnP-capable devices on network: err=0 [2024-06-03 14:21:36:381381] [I] Sent response to 203.106.115.81:24487 [2024-06-03 14:21:36:700700] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:21:36:900900] [I] Sent response to 203.106.115.81:24487 [2024-06-03 14:21:37:370370] [I] Sent response to 203.106.115.81:24487 [2024-06-03 14:21:40:248248] [I] >> Punched hole for data connection! [2024-06-03 14:21:41:276276] [W] Received presumably invalid Session Id: [2024-06-03 14:21:41:276276] [W] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-06-03 14:21:41:276276] [W] 0 10 49 6e 76 61 6c 69 64 53 65 73 73 69 6f 6e 49 .InvalidSessionI [2024-06-03 14:21:41:276276] [W] 10 64 d
[2024-06-03 14:21:41:276276] [E] Received Session Id is too short [2024-06-03 14:21:41:276276] [I] Seconds ARE: 4783 with length 4 [2024-06-03 14:21:41:276276] [I] Ctrl set fallback session Id 4783nIN0LkruIL46T3m0VXXzVrQFlV4IuoyI7w8M87sc1jSN+K1ICSJSVEwu9ypwTpiD [2024-06-03 14:21:41:277277] [I] Enabling DualSense features [2024-06-03 14:21:41:277277] [I] Starting Senkusha [2024-06-03 14:21:41:277277] [I] Takion connecting (version 7) [2024-06-03 14:21:41:477477] [I] Takion enabled Don't Fragment Bit [2024-06-03 14:21:41:477477] [I] Takion sent init [2024-06-03 14:21:41:543543] [I] Takion received init ack with remote tag 0x34d13087, outbound streams: 0x64, inbound streams: 0x64 [2024-06-03 14:21:41:543543] [I] Takion sent cookie [2024-06-03 14:21:41:575575] [I] Takion received cookie ack [2024-06-03 14:21:41:575575] [I] Takion connected [2024-06-03 14:21:41:576576] [I] Setting takion versions [2024-06-03 14:21:41:608608] [I] Senkusha successfully set takion version [2024-06-03 14:21:41:608608] [I] Senkusha sending big [2024-06-03 14:21:41:639639] [I] Senkusha successfully received bang [2024-06-03 14:21:41:640640] [I] Senkusha Ping Test with count 10 starting [2024-06-03 14:21:41:664664] [I] Senkusha enabled echo [2024-06-03 14:21:41:664664] [I] Senkusha sending Ping 0 of test index 0 [2024-06-03 14:21:41:695695] [I] Senkusha received Pong, RTT = 31.047 ms [2024-06-03 14:21:41:696696] [I] Senkusha sending Ping 1 of test index 0 [2024-06-03 14:21:41:728728] [I] Senkusha received Pong, RTT = 32.515 ms [2024-06-03 14:21:41:728728] [I] Senkusha sending Ping 2 of test index 0 [2024-06-03 14:21:41:767767] [I] Senkusha received Pong, RTT = 38.639 ms [2024-06-03 14:21:41:767767] [I] Senkusha sending Ping 3 of test index 0 [2024-06-03 14:21:41:787787] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:21:41:799799] [I] Senkusha received Pong, RTT = 32.236 ms [2024-06-03 14:21:41:800800] [I] Senkusha sending Ping 4 of test index 0 [2024-06-03 14:21:41:836836] [I] Senkusha received Pong, RTT = 35.752 ms [2024-06-03 14:21:41:836836] [I] Senkusha sending Ping 5 of test index 0 [2024-06-03 14:21:41:981981] [I] Senkusha received Pong, RTT = 144.969 ms [2024-06-03 14:21:41:981981] [I] Senkusha sending Ping 6 of test index 0 [2024-06-03 14:21:42:030030] [I] Senkusha received Pong, RTT = 49.299 ms [2024-06-03 14:21:42:030030] [I] Senkusha sending Ping 7 of test index 0 [2024-06-03 14:21:42:069069] [I] Senkusha received Pong, RTT = 38.908 ms [2024-06-03 14:21:42:070070] [I] Senkusha sending Ping 8 of test index 0 [2024-06-03 14:21:42:123123] [I] Senkusha received Pong, RTT = 53.016 ms [2024-06-03 14:21:42:123123] [I] Senkusha sending Ping 9 of test index 0 [2024-06-03 14:21:42:160160] [I] Senkusha received Pong, RTT = 36.905 ms [2024-06-03 14:21:42:185185] [I] Senkusha disabled echo [2024-06-03 14:21:42:185185] [I] Senkusha determined average RTT = 49.328 ms [2024-06-03 14:21:42:185185] [I] Senkusha starting MTU in test with min 576, max 1454, retries 3, timeout 246 ms [2024-06-03 14:21:42:185185] [I] Senkusha MTU request 1454 (min 576, max 1454), id 1, attempt 0 [2024-06-03 14:21:42:223223] [I] Senkusha MTU 1454 success [2024-06-03 14:21:42:223223] [I] Senkusha determined inbound MTU 1454 [2024-06-03 14:21:42:223223] [I] Senkusha starting MTU out test with min 576, max 1454, retries 3, timeout 246 ms [2024-06-03 14:21:42:223223] [I] Senkusha sent initial client MTU command [2024-06-03 14:21:42:264264] [I] Senkusha received expected Client MTU Command [2024-06-03 14:21:42:264264] [I] Senkusha MTU 1454 out ping attempt 0 [2024-06-03 14:21:42:364364] [I] Senkusha MTU ping 1454 success [2024-06-03 14:21:42:364364] [I] Senkusha determined outbound MTU 1454 [2024-06-03 14:21:42:364364] [I] Senkusha sending final Client MTU Command [2024-06-03 14:21:42:402402] [I] Senkusha is disconnecting [2024-06-03 14:21:42:402402] [I] Senkusha closed takion [2024-06-03 14:21:42:403403] [I] Senkusha completed successfully [2024-06-03 14:21:42:620620] [W] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-06-03 14:21:42:620620] [W] 0 ff ff ff ed 00 00 00 64 .......d
[2024-06-03 14:21:42:878878] [I] Received Switch to Stream Connection Ack... Switching to Stream Connection now [2024-06-03 14:21:42:879879] [I] Takion connecting (version 12) [2024-06-03 14:21:43:080080] [I] Takion disabled Don't Fragment Bit [2024-06-03 14:21:43:080080] [I] Takion sent init [2024-06-03 14:21:43:195195] [I] Takion received init ack with remote tag 0x3b921f58, outbound streams: 0x64, inbound streams: 0x64 [2024-06-03 14:21:43:195195] [I] Takion sent cookie [2024-06-03 14:21:43:227227] [I] Takion received cookie ack [2024-06-03 14:21:43:227227] [I] Takion connected [2024-06-03 14:21:43:228228] [I] StreamConnection sending big [2024-06-03 14:21:43:275275] [I] BANG received [2024-06-03 14:21:43:276276] [I] StreamConnection successfully received bang [2024-06-03 14:21:43:276276] [I] Crypt has become available. Re-checking MACs of 0 packets [2024-06-03 14:21:43:428428] [D] StreamConnection received audio header: [2024-06-03 14:21:43:428428] [W] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-06-03 14:21:43:428428] [D] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [2024-06-03 14:21:43:428428] [W] 0 00 00 00 00 02 01 00 00 ........
[2024-06-03 14:21:43:428428] [D] 0 02 10 00 00 bb 80 00 00 01 e0 00 00 00 01 ..............
[2024-06-03 14:21:43:428428] [I] Audio Header: [2024-06-03 14:21:43:428428] [I] channels = 2 [2024-06-03 14:21:43:428428] [I] bits = 16 [2024-06-03 14:21:43:428428] [I] rate = 48000 [2024-06-03 14:21:43:428428] [I] frame size = 480 [2024-06-03 14:21:43:428428] [I] unknown = 1 [2024-06-03 14:21:43:428428] [I] ChiakiOpusDecoder initialized [2024-06-03 14:21:43:463463] [I] Audio Device 'Auto' opened with 2 channels @ 48000 Hz, buffer size 5760 [2024-06-03 14:21:43:463463] [I] Video Profiles: [2024-06-03 14:21:43:463463] [I] 0: 1280x720 [2024-06-03 14:21:43:463463] [I] StreamConnection successfully received streaminfo [2024-06-03 14:21:43:598598] [I] Switched to profile 0, resolution: 1280x720 [2024-06-03 14:21:46:855855] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:21:46:963963] [I] Frame Processor received 0+2 / 2+8 units, attempting FEC [2024-06-03 14:21:46:964964] [I] FEC successful [2024-06-03 14:21:46:964964] [W] Received duplicate unit [2024-06-03 14:21:46:964964] [W] Received duplicate unit [2024-06-03 14:21:47:535535] [W] Detected missing or corrupt frame(s) from 236 to 237 [2024-06-03 14:21:47:535535] [D] StreamConnection reporting corrupt frame(s) from 236 to 236 [2024-06-03 14:21:47:535535] [W] Missing reference frame 236 for decoding frame 237 -> changed to 235 [2024-06-03 14:21:48:030030] [I] Frame Processor received 0+1 / 1+1 units, attempting FEC [2024-06-03 14:21:48:030030] [I] FEC successful [2024-06-03 14:21:48:030030] [W] Received duplicate unit [2024-06-03 14:21:49:791791] [W] Detected missing or corrupt frame(s) from 371 to 372 [2024-06-03 14:21:49:791791] [D] StreamConnection reporting corrupt frame(s) from 371 to 371 [2024-06-03 14:21:49:791791] [W] Missing reference frame 371 for decoding frame 372 -> changed to 370 [2024-06-03 14:21:51:921921] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:21:52:940940] [W] Video Receiver received old frame packet [2024-06-03 14:21:52:940940] [W] Video Receiver received old frame packet [2024-06-03 14:21:53:601601] [I] Frame Processor received 0+1 / 1+26 units, attempting FEC [2024-06-03 14:21:53:601601] [I] FEC successful [2024-06-03 14:21:53:697697] [I] Frame Processor received 0+1 / 1+25 units, attempting FEC [2024-06-03 14:21:53:697697] [I] FEC successful [2024-06-03 14:21:54:243243] [I] Frame Processor received 0+1 / 1+26 units, attempting FEC [2024-06-03 14:21:54:243243] [I] FEC successful [2024-06-03 14:21:56:041041] [I] Frame Processor received 0+1 / 1+1 units, attempting FEC [2024-06-03 14:21:56:041041] [I] FEC successful [2024-06-03 14:21:56:042042] [W] Received duplicate unit [2024-06-03 14:21:56:981981] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:21:57:027027] [I] Frame Processor received 0+1 / 1+1 units, attempting FEC [2024-06-03 14:21:57:027027] [I] FEC successful [2024-06-03 14:21:57:028028] [W] Received duplicate unit [2024-06-03 14:21:57:263263] [W] Detected missing or corrupt frame(s) from 819 to 820 [2024-06-03 14:21:57:263263] [D] StreamConnection reporting corrupt frame(s) from 819 to 819 [2024-06-03 14:21:57:263263] [W] Missing reference frame 819 for decoding frame 820 -> changed to 818 [2024-06-03 14:21:57:977977] [W] Detected missing or corrupt frame(s) from 862 to 863 [2024-06-03 14:21:57:977977] [D] StreamConnection reporting corrupt frame(s) from 862 to 862 [2024-06-03 14:21:57:977977] [W] Missing reference frame 862 for decoding frame 863 -> changed to 861 [2024-06-03 14:21:58:039039] [I] Frame Processor received 0+1 / 1+1 units, attempting FEC [2024-06-03 14:21:58:039039] [I] FEC successful [2024-06-03 14:21:58:044044] [W] Received duplicate unit [2024-06-03 14:21:59:615615] [W] Detected missing or corrupt frame(s) from 960 to 961 [2024-06-03 14:21:59:615615] [D] StreamConnection reporting corrupt frame(s) from 960 to 960 [2024-06-03 14:21:59:615615] [W] Missing reference frame 960 for decoding frame 961 -> changed to 959 [2024-06-03 14:22:00:113113] [I] Frame Processor received 0+1 / 1+1 units, attempting FEC [2024-06-03 14:22:00:113113] [I] FEC successful [2024-06-03 14:22:01:665665] [W] Received duplicate unit [2024-06-03 14:22:02:049049] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:22:06:160160] [I] Frame Processor received 0+1 / 1+23 units, attempting FEC [2024-06-03 14:22:06:160160] [I] FEC successful [2024-06-03 14:22:07:125125] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:22:09:454454] [I] Frame Processor received 0+1 / 1+23 units, attempting FEC [2024-06-03 14:22:09:454454] [I] FEC successful [2024-06-03 14:22:11:376376] [I] Frame Processor received 0+1 / 1+23 units, attempting FEC [2024-06-03 14:22:11:376376] [I] FEC successful [2024-06-03 14:22:12:120120] [I] Frame Processor received 0+2 / 2+22 units, attempting FEC [2024-06-03 14:22:12:120120] [I] FEC successful [2024-06-03 14:22:12:195195] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:22:14:801801] [I] [libplacebo] Available surface configurations: [2024-06-03 14:22:14:802802] [I] [libplacebo] 0: VK_FORMAT_B8G8R8A8_SRGB VK_COLOR_SPACE_SRGB_NONLINEAR_KHR [2024-06-03 14:22:14:802802] [I] [libplacebo] 1: VK_FORMAT_B8G8R8A8_UNORM VK_COLOR_SPACE_SRGB_NONLINEAR_KHR [2024-06-03 14:22:14:802802] [I] [libplacebo] Picked surface configuration 1: VK_FORMAT_B8G8R8A8_UNORM + VK_COLOR_SPACE_SRGB_NONLINEAR_KHR [2024-06-03 14:22:14:916916] [I] Frame Processor received 0+1 / 1+24 units, attempting FEC [2024-06-03 14:22:14:916916] [I] FEC successful [2024-06-03 14:22:14:917917] [W] Received duplicate unit [2024-06-03 14:22:16:158158] [I] Frame Processor received 0+1 / 1+23 units, attempting FEC [2024-06-03 14:22:16:158158] [I] FEC successful [2024-06-03 14:22:16:495495] [I] Frame Processor received 0+1 / 1+24 units, attempting FEC [2024-06-03 14:22:16:495495] [I] FEC successful [2024-06-03 14:22:17:271271] [I] Ctrl received Heartbeat, sending reply [2024-06-03 14:22:17:916916] [I] Frame Processor received 0+1 / 1+24 units, attempting FEC [2024-06-03 14:22:17:916916] [I] FEC successful [2024-06-03 14:22:17:916916] [W] Video Receiver received old frame packet [2024-06-03 14:22:17:917917] [W] Received duplicate unit [2024-06-03 14:22:18:747747] [I] Frame Processor received 0+1 / 1+24 units, attempting FEC [2024-06-03 14:22:18:747747] [I] FEC successful [2024-06-03 14:22:19:571571] [I] Frame Processor received 0+1 / 1+25 units, attempting FEC [2024-06-03 14:22:19:571571] [I] FEC successful [2024-06-03 14:22:19:914914] [I] Frame Processor received 0+1 / 1+25 units, attempting FEC [2024-06-03 14:22:19:914914] [I] FEC successful [2024-06-03 14:22:19:914914] [W] Video Receiver received old frame packet [2024-06-03 14:22:19:914914] [W] Video Receiver received old frame packet [2024-06-03 14:22:19:914914] [W] Received duplicate unit [2024-06-03 14:22:20:005005] [I] Frame Processor received 0+1 / 1+24 units, attempting FEC [2024-06-03 14:22:20:006006] [I] FEC successful [2024-06-03 14:22:20:969969] [I] StreamConnection is disconnecting [2024-06-03 14:22:20:970970] [I] StreamConnection sending Disconnect [2024-06-03 14:22:20:970970] [I] StreamConnection was requested to stop [2024-06-03 14:22:20:970970] [I] StreamConnection closed takion [2024-06-03 14:22:20:970970] [I] StreamConnection completed successfully [2024-06-03 14:22:20:970970] [I] Ctrl requested to stop [2024-06-03 14:22:20:970970] [I] Ctrl stopped [2024-06-03 14:22:20:970970] [I] Session has quit [2024-06-03 14:22:21:388388] [I] chiaki_holepunch_session_fini: Holepunch session deleted. [2024-06-03 14:22:21:388388] [E] websocket_thread_func: Select canceled.

streetpea commented 3 months ago

@kamalcr7 it being hit and miss makes me think that the random guess function is working sometimes. If upnp was working it should hit consistently. I’m thinking maybe you are behind cgnat and don’t have an ipv4 address for your router (meaning port forwarding and upnp won’t have an effect bc they won’t actually forward the external port which would belong to your isps router in that case) … you can check if you are behind cgnat by looking at the public or WAN ip of the router. If it is 192., 10. Or 172 or 100. (Special for cgnat). It is behind cgnat. Otherwise it is not behind cgnat and upnp or port forwarding should work.

Also when you fail is it failing with your network type is likely unsupported or something else?

and is it like 50%, 10% or what (in regards to the hit or miss)

right now it guesses 25 times and sends 25 responses which should cover 625 possibilities out of 65000 or about 1% for each attempt … meaning that a success would happen on average 1/1000 times. However, usually cgnat allocates port blocks of say 64, 128, or 512 or something like that so actually you may have something like 512 or 1024 ports to guess from meaning you would a much higher percentage of the time (most of the time or about half of the time in those cases). It’s possible you have multiple port blocks of say 64 ports and when one hits within the port range it will work. If it is hitting on this random allocation we could tweak the random allocation settings to maybe work better with testing but it will likely never be guaranteed 100% bc we can only send at most like 50 of these connections bc that is the most the ps supports. But upping the connections to 50 may increase the rate it it succeeds say 1/16 times now (1/4 * 1/4) and we increase the connections by 4 (from 25 to 50 on both sides) that would improve our chances to (1 - 15/16^4) ie about 1/4 which is why I’m asking what % of the time it works.

streetpea commented 3 months ago

@kamalcr7 I made builds that increase the candidates and connections from (25 x 25). can you try this build ( 50 x 50 ) https://github.com/streetpea/chiaki4deck/actions/runs/9372061081/artifacts/1568021553 and this build (75x900) https://github.com/streetpea/chiaki4deck/actions/runs/9374704365/artifacts/1568717075?