Socket Connection Timeout issue
843790Dec 28 2006 — edited Dec 29 2006Can anyone explain how I can get a ConnectionException that states as the reason "conntection timed out" when I try to connect a socket without setting the timeout parameter?
socket = new Socket();
SocketAddress sAddr = new InetSocketAddress(host, port);
socket.connect( sAddr );
gives me:
java.net.ConnectException: Connection timed out