I would like to know if it is possible to connect to an application to a specific port.
I am trying to have a websocket server (using php ratchet library) to run on port 3000. Trying to connect to the websocket server from the terminal (using 127.0.0.1:3000) works just fine. I cannot make it work if I try from a client (I tried using app-url:3000).
I imagine the internals of the url routing and port listening is at fault.
So is this something that can be done? And if yes, should I use a specific port or what is the preferred way?
Thanks very much,
Edit: I also tried using the public ip of the application, but still no luck.