无法telnet到localhost

时间:2016-04-18 04:50:41

标签: linux telnet ports

尝试telnet到localhost时,我收到以下错误

telnet localhost 32768
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Network is unreachable

1 个答案:

答案 0 :(得分:2)

如果你跑

netstat -ln

它可能会显示您的服务器侦听0.0.0.0,它只允许IPv4连接。如果软件侦听::(IPv6 ANY),它将允许IPv4和IPv6连接,除非它通过socksetopt()调用告诉内核(参见man ipv6(7)IPV6_V6ONLY)