How to ping an host, icmp ping

schimanski

Well-Known Member
Licensed User
Longtime User
Hello!

Is it possible to send a TCP-Ping to a host out of basic4android?

Thanks for help...
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
The Java way to ping an IP address is with the InetAddress.IsReachable method. This method is however broken in Android and doesn't work properly. So the only option is to use Shell and run the ping command.

How can I wait somehow for the shell to finish and then continue?
 
Upvote 0
Top