This content has been marked as final. Show 3 replies
spencer.bowman wrote:The port you specify in the client is not a random port. It's the port of the listening server application (server socket).
Just going through the Sun tutorials and trying to establish a connection. In the KnockKnockClient example program they have initiated a new Socket with a server name and port number as follows:
I've changed the taranis to "127.0.0.1" and port number to something random that is unused (37838) but I still get an IOException.
kkSocket = new Socket("taranis", 4444);
Are there any particular ports I can use on my local machine to get the programs up and running?