I get acquainted with sockets on the local server. The server through which the client connects to the server is launched via the console. Everything works fine. Here it is time to put the site on the network, on the hosting. And the question immediately arises: how to run this server now, on a real hosting? not through the console exactly

  • and you can add material on sockets, I also very persistently get acquainted. How and what was connected? I had already got acquainted with site.js from here github.com/morozovsk/websocket , for this article habrahabr.ru/post/209864 even found a couple of push services. I can share my knowledge. - Sergalas
  • I write in php. I use Ratchet and ZMQ library. Yes, I have figured out the sockets in general, but it’s not all that easy with hosting a website - Kolya Vantukh

1 answer 1

And what confuses you console? The console is the main element of the transfer of commands from the user to the software. Run through the console.

You need to run such a creation at least on a VPS, because you don’t run it on a regular hosting, usually hosting providers do not allow to bind to local ports.

The only thing desirable to put some supervisord, to control the demon itself and perform certain actions if it falls.