Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ping: sendto: No route to host #880

Open
dgvinton opened this issue Dec 29, 2024 · 4 comments
Open

ping: sendto: No route to host #880

dgvinton opened this issue Dec 29, 2024 · 4 comments

Comments

@dgvinton
Copy link

dgvinton commented Dec 29, 2024

Hello,

I'm running a-shell on an iPad Pro (11-inch) (3rd Generation).

First, thank you for developing a-shell. I love it!

Second, when I ping any device (except the iPad itself, 192.168.10.202) on the local subnet I receive "ping: sendto: No route to host" messages. External pings work. For example:

[~/Documents]$ ping -c2 192.168.10.202
PING 192.168.10.202 (192.168.10.202): 56 data bytes
64 bytes from 192.168.10.202: icmp_seq=0 ttl=64 time=0.303 ms
64 bytes from 192.168.10.202: icmp_seq=1 ttl=64 time=0.365 ms
--- 192.168.10.202 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.303/0.334/0.365/0.031 ms
[~/Documents]$ ping -c2 192.168.10.204
PING 192.168.10.204 (192.168.10.204): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
Request timeout for icmp_seq 0
--- 192.168.10.204 ping statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss
[~/Documents]$ ping -c2 www.google.com
PING www.google.com (142.251.218.132): 56 data bytes
64 bytes from 142.251.218.132: icmp_seq=0 ttl=60 time=11.354 ms
64 bytes from 142.251.218.132: icmp_seq=1 ttl=60 time=11.897 ms
--- www.google.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 11.354/11.625/11.897/0.272 ms
[~/Documents]$

Using Joe's Network Utility Pro, ping's to .204 receive replies.

Please advise.

Best regards,

Don

@holzschu
Copy link
Owner

holzschu commented Jan 2, 2025

I ran some tests, trying to ping a machine on the local network, without the -c 2 flag.

  • on an iPad, running iOS 16: no issues, ping works as expected.
  • on an iPhone, running iOS 18: ping starts by saying "sendto: No route to host" (about 4 times), then a popup window appears "Allow a-Shell to access devices on the local network?". Once I answer yes, ping works as expected.

It seems like a new protection was introduced in iOS 18. I would advise running ping with no flags until the popup window appears; after that it will be working nicely.

@dgvinton
Copy link
Author

dgvinton commented Jan 2, 2025 via email

@holzschu
Copy link
Owner

holzschu commented Jan 2, 2025

There's also the possibility that the popup went up, and you said "No".
If that's the case, you will see the option in the Settings app, under Apps -> a-Shell -> "Local Network".

@dgvinton
Copy link
Author

dgvinton commented Jan 2, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants