The socket.io server will need a port to bind to, which is 80 or 443 in most cases, because other ports can be blocked by client firewalls. Since DirectAdmin will already make it's web server (Apache) run on those ports, you can't run anything else on them as far as I know. If you're just playing around, use a random port number and you won't even need to configure anything in DirectAdmin for the socket server, but if you're planning on building a real life application, I'd recommend to seek or await further advise.
Jun 20, 2016
3
Level 6
Running socket.io server on shared hosting with ssh access
Hi,
I have a VPS server with DirectAdmin installed, hostname would be hostname.com for example.
I created an account with the domain socket.hostname.com . Now I want to create a running node.js server with socket.io so I'll be able to create a chat application using Laravel calling and sending requests to this socket.io server .
How do I do that?
Please or to participate in this conversation.