Issues with IP, java related
Hello to you all!
I am new to this forum :)
I am going crazy over an issue with the application I am trying to develop.
It is basically a messenger.
The way its working: I have a server and a client.
The server opens a socket, such as: ServerSocket server=new ServerSocket(2013);
Then, the client requests a connection, with: Socket x=new Socket("ra.nd.om.ip",2013)
If I set the "ra.nd.om.ip" to localhost (that is 127.0.0.1) it all works well.
But it doesn't work with any other IP.
Can anybody help me?