java sockets programming
<p>i have been trying to write some programs on java sockets and i got stuck with this problem. 
Normally the INetAddress object is created using the factory methods getLocalHost(), getbyAddress(byte[]) and getbyName(string).... when I use getbyName function... </p>

<p>for example...</p>

<pre><code>INetAddress a=InetAddress.getbyName("www.google.com"); 
</code></pre>

<p>and trying to print the above object using println method i was getting Unknown host exception but actually i heard that it would perform a DNS query and return one of the IP address of a server  of google.com but its not working that way... i used netbeans to run the program and our college has a proxy server also. </p>

<p>One more thing... if i use the getbyName(string) and give an argument as some others PC name who is within the college network then can it resolve the system IP address ? . In my case this was unable to resolve..
  I checked by turning the windows firewall to off state also but in vain....
please help...</p>

<p><code>ping www.google.com</code> is showing <em>"ping request could not find the host name google.com"</em></p>
