I have been using Shared hosting to host my website. I want to deploy a PHP WebSocket application built using Ratchet PHP. So I want it to listen on port 9000.
When I ran command
php server.php in my SSH access it shows server is started and listening on domain.com:9000. But in my chat application, It takes some time and then says:
Firefox can’t establish a connection to the server at ws://domain.com:9000/
Also, I have checked
telnet domain.com 9000 which results in
Could not open connection to the host, on port 9000: Connect failed.
I contacted the support about it, they says
Your Port 9000 is opened for OutBound Connections.
How can I check whether my port is opened? and also If opened why It doesn't listens to the connections made by a web browser as client to server?