A socket is defined as one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify to which application the data is sent.
You are not allowed to use or create new inbound socket connections.
PHP socket support?
If you are connecting out, it should work. We do not allow clients to bind to local ports for incoming.