I\'m trying to use Sockets on an EC2 Instance, but when I try to run the code I get the following error:
PHP Warning: socket_bind(): unable to bind a
The phantomjs has some question,
we need bind the internal ip of We can see at ifconfig, not external IP of We can`t see at that.
You cannot bind to the external IP, you have to bind to the internal IP, and setup a rule to allow that port so when they connect to the external IP and port, it gets redirected to the internal IP.