title: what could be the reason I am getting java.net.UnknownHostException, when I try to ping my own pc with a network IP?
body: <p>I try to ping the server which is my own PC, with the following line of code :</p>
  
  <pre><code>InetAddress.getByName(serverResourceLocator).isReachable(5000)
  
  // where serverResourceLocator is  192.168.43.187/server/ping?ip=Adarsh-PC/192.168.43.187&amp;time=1355482205301
  </code></pre>
  
  <p>Here <code>192.168.43.187</code> is the network IP of my PC, that I came to know from the command <code>ipconfig</code></p>
  
  <pre><code>Wireless LAN adapter Wireless Network Connection:
  
  Connection-specific DNS Suffix  . :
  Link-local IPv6 Address . . . . . : fe80::f5be:cfa7:5c38:efff%14
  IPv4 Address. . . . . . . . . . . : 192.168.43.187
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 192.168.43.1
  </code></pre>
  
  <p>On my PC i am running tomcat as the server. Why am I getting <code>UnknownHostException</code> ?</p>
  
  <hr>
  
  <pre><code>java.net.UnknownHostException: 192.168.43.187/server/ping?ip=Adarsh-PC/192.168.43.187&amp;time=1355482205301
  at java.net.InetAddress.getAllByName0(InetAddress.java:1140)
  at java.net.InetAddress.getAllByName0(InetAddress.java:1109)
  at java.net.InetAddress.getAllByName(InetAddress.java:1072)
  at java.net.InetAddress.getByName(InetAddress.java:969)
  at internet.CommunicationWithServer.PingTheServer.ping(PingTheServer.java:35)
  at internet.CommunicationWithServer.PingTheServer.access$000(PingTheServer.java:11)
  at internet.CommunicationWithServer.PingTheServer$1.run(PingTheServer.java:21)
  at java.lang.Thread.run(Thread.java:619)
  </code></pre>