已经设置了安全组:
本机测试可以
root@iZwz95xbqcgqhphdl6zlv0Z:/home/www# node testClient.js
Connected
Received: Hello,server!Love,Client.Hello,server!Love,Client.
Connection close
也已经监听了端口:
root@iZwz95xbqcgqhphdl6zlv0Z:/home/www# netstat -noa | grep 17527
tcp 0 0 127.0.0.1:17527 0.0.0.0:* LISTEN off (0.00/0/0)
tcp 0 0 127.0.0.1:36366 127.0.0.1:17527 TIME_WAIT timewait (54.20/0/0)
但是外网无法访问:
longdeMacBook-Pro:anbei-socket long$ telnet 112.74.190.1** 17527
Trying 112.74.190.1**...
telnet: connect to address 112.74.190.1**: Connection refu_sed
telnet: Unable to connect to remote host