R
Ramon
Hi,
I'm writing a simple client that connects to a server. Code:
Socket s = new Socket(InetAddress.getByName("127.0.0.1"), 60000);
I was testing the client. One test was to "switch off" the server that
was running on the localhost on port 60000. For some reason, the client
still manages to connect to the server. I tried to telnet that port, to
make sure that there is not program running.
My questions are:
[1] What am I doing wrong?
[2] Is this a bug?
From java.sun.com:
public Socket(InetAddress address, int port)
throws IOException
Creates a stream socket and *connects* it to the specified port number
at the specified IP address.
Thanks
I'm writing a simple client that connects to a server. Code:
Socket s = new Socket(InetAddress.getByName("127.0.0.1"), 60000);
I was testing the client. One test was to "switch off" the server that
was running on the localhost on port 60000. For some reason, the client
still manages to connect to the server. I tried to telnet that port, to
make sure that there is not program running.
My questions are:
[1] What am I doing wrong?
[2] Is this a bug?
From java.sun.com:
public Socket(InetAddress address, int port)
throws IOException
Creates a stream socket and *connects* it to the specified port number
at the specified IP address.
Thanks