On LAN, everything works fine, the client connects to the server, and already on vds gives an error

GET http://domain.ru:5665/socket.io/?EIO=3&transport=polling&t=LEzVbkH net :: ERR_CONNECTION_TIMED_OUT

On vds, the server is started, it displays that it is listening on port 5665 .

Client connection itself:

 var socket = io.connect('http://domain.ru:5665'); socket.on('connect',function(){ socket.on('getConn', function(data) { // some code }); }); 

With what it can be connected? Google did not help.

  • Is port 5665 exactly accessible from the outside? - Dmitriy Simushev
  • How to check it? - mix
  • telnet domain.ru 5665 - Dmitriy Simushev
  • @DmitriySimushev Unable to connect to remote host . I understand it is not available. How can I open access? - mix
  • It depends on what OS you are using on the server. In linux, look towards iptables - Dmitriy Simushev

0