When you created the server socket you mentioned the port of listening, you have to connect with the client at that port, if you want to connect with a client to the same machine your IP is "localhost" or if it's other machine it should be it's IP ( e.g. "192.168.0.65).