Pinging the console throws an error, but connecting works #2

Closed
opened 2022-09-05 13:24:01 -05:00 by IrealiTY · 3 comments
IrealiTY commented 2022-09-05 13:24:01 -05:00 (Migrated from github.com)

Hey, hi, thanks for your mods to the remote play app :D

Had to remove this section from the script to get it to work, not sure why i can't ping my console from the steam deck (other network devices work fine)

ping -c 3 -w 30 xxx.xxx.xxx.xx &>/dev/null
sleep 1

also, I suggest maybe adding a longer sleep command after the wake-up (I use 4 :) )

Hey, hi, thanks for your mods to the remote play app :D Had to remove this section from the script to get it to work, not sure why i can't ping my console from the steam deck (other network devices work fine) ```sh ping -c 3 -w 30 xxx.xxx.xxx.xx &>/dev/null sleep 1 ``` also, I suggest maybe adding a longer sleep command after the wake-up (I use 4 :) )
streetpea commented 2022-09-05 13:34:14 -05:00 (Migrated from github.com)

The ping command will wait up to 30 seconds for availability already with a minimum of 3 seconds, continuing once 3 successful pings (1 every second) are received. If the device is not up the ping command won’t return until later. As soon as it’s up for 3 seconds, it will return. If ping isn’t working for you I’d suggest a sleep of 10 seconds to be safe … I have found 4 to be inadequate. In general, ping is a much better solution than just sleep. I am going to upgrade the ping to an even better solution later (ie using the Chiaki discover protocol to send a properly formatted packet since that port has to be open for remote play to work). Until then, I’ll just leave this as a workaround for people that ping doesn’t work for. (I.e The workaround is deleting the ping command and the two sleep 1 and replacing with sleep 10).

The ping command will wait up to 30 seconds for availability already with a minimum of 3 seconds, continuing once 3 successful pings (1 every second) are received. If the device is not up the ping command won’t return until later. As soon as it’s up for 3 seconds, it will return. If ping isn’t working for you I’d suggest a sleep of 10 seconds to be safe … I have found 4 to be inadequate. In general, ping is a much better solution than just sleep. I am going to upgrade the ping to an even better solution later (ie using the Chiaki discover protocol to send a properly formatted packet since that port has to be open for remote play to work). Until then, I’ll just leave this as a workaround for people that ping doesn’t work for. (I.e The workaround is deleting the ping command and the two sleep 1 and replacing with sleep 10).
IrealiTY commented 2022-09-05 19:18:04 -05:00 (Migrated from github.com)

Yeah, I need to check why exactly ping is not working, I woke up the console manually and pinged from the deck to make the tests and got not response - I do think it must be something on my end, but it's good to know that it still works and yo u can connect nonetheless.

Yeah, I need to check why exactly ping is not working, I woke up the console manually and pinged from the deck to make the tests and got not response - I do think it must be something on my end, but it's good to know that it still works and yo u can connect nonetheless.
streetpea commented 2022-09-14 13:38:13 -05:00 (Migrated from github.com)

You should be able to update now by (either updating the flatpak in the discover store or run flatpak update in the console) and going back through https://streetpea.github.io/chiaki4deck/setup/automation/ to update your launch script. It should work for you now as it no longer requires ping. Let me know how it goes.

You should be able to update now by (either updating the flatpak in the discover store or run flatpak update in the console) and going back through https://streetpea.github.io/chiaki4deck/setup/automation/ to update your launch script. It should work for you now as it no longer requires ping. Let me know how it goes.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-streetpea/chiaki-ng#2
No description provided.