I have just put my socket server on Amazon EC2 and the server is up and running. The port for the server socket is ss = new ServerSocket(30001);. What do I set the socket port inside my client class to? It is currently on local host. socket = new Socket("localhost", 30001); The amazon EC2 address is
ec2-user@ec2-34-253-76-28.eu-west-1.compute.amazonaws.com
Do I just replace localhost with this?