You can send any information you like over a TCP connection. You cannot however ping other standard network devices as they are expecting ICMP communication.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.