problem with socket
I am working with EC2 Amazon and I have a socket server in PHP listening on port 5006.
The problem is that socket clients can not connect, the error message is:
I have open the port in the EC2 management console.
Could not connect:  Network is unreachable
Also, the IP that the server connects to is the internal IP “172.31.5.211”, not the public IP.
Could you help me please??
Thank you very much!!
I solved the problem disabling the firewall with this command
Is it good to disable the Firewall??
Thank you very much
The snippets of code below show's their socket creation.
//Create a socket to listen on port 3002
ServerSocket ss = new ServerSocket(3002);
//create input streams, read data etc...
//Create a socket connection to the physical host 'doug-pc'
Socket sClient = new Socket("doug-PC", 3002);
//create output streams, write data etc...
Can anyone identify the problem?