title: How to ping a server from an android tablet
body: <p>I am trying to write an android tablet application which scans for a set of ip addresses in the local network and check whether they are in use or alive. I am using the </p>
  
  <pre><code>InetAddress.getByName(ipAd).isReachable(100)
  </code></pre>
  
  <p>but when i check the logs it returns false and true on certain computers on the network. I tried pinging the machines manually and it works like a charm but from the android device not all computers return true. I had also allowed ICMP ping requests on the firewalls of the machines in the local network.</p>
  
  <p>Does anyone have an idea about this?</p>
  
  <p>Thanks in Advance</p>
  
  <p>Cheers</p>