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!!
Last edited by jessPHP; 02-18-2014 at 03:19 AM.
Reason: wrong info
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?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)