What is the code you are using to open the socket? Are you specifying a port
( port 80 ) and are you sure its not in use?

i.e.

String hostName = "www.yahoo.com";
Socket HTTPConnection = new Socket( hostName, 80 );

-Riyad

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 26, 2000 2:34 PM
To: java-linux
Subject: java.net.UnknownHostException:


    I am getting this thrown when I try to create a socket.  It does not
matter if I use 172.16.1.50 or double.silverfields.com or localhost or
what.  They all resolve with nslookup.

    Am am using IBM 1.3 and Sun/Borland 1.2.2 with the same result.  Any
ideas?


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to