I am having a problem with my client not being able to connect to server when the port is a port other than 1099.
My server is running fine on any port i specify. Client connects no problem on 1099. But when server is started on another port, I get a remote exception. It is a java.net.ConnectException: Connection refused: connect.
Here is code i use to connect from client..
Do i need to specify what port the client connects to? If so, How do i do this?