Node.js nur server listening on ipv6

Ich bin mit einem node.js server auf port 5403. Ich kann telent an die private ip auf diesem port, aber nicht mit telnet auf die öffentliche ip auf dem gleichen port.

Ich nehme an, die Ursache davon ist, weil node.js nur hört auf ipv6. Dies ist das Ergebnis

netstat -tpln

(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
PID/Program name
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      
-
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      
-
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      
-
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      
-
tcp6       0      0 :::5611                 :::*                    LISTEN      
25715/node
tcp6       0      0 :::22                   :::*                    LISTEN      
-
tcp6       0      0 ::1:631                 :::*                    LISTEN      
-
tcp6       0      0 :::5403                 :::*                    LISTEN      
25709/node

Wie mache ich den Knoten server hören auf ipv4

  • Was ist deine Konfiguration? Dies ist der Ausgang, aber wo ist der Eingang? 🙂
InformationsquelleAutor codeyard | 2017-12-13
Schreibe einen Kommentar