Mac 上查看服务器端口连通性

$ nc -vz 47.97.222.122 9500-9511
nc: connectx to 47.97.222.122 port 9500 (tcp) failed: Operation timed out
Connection to 47.97.222.122 port 9501 [tcp/*] succeeded!
Connection to 47.97.222.122 port 9502 [tcp/*] succeeded!
nc: connectx to 47.97.222.122 port 9503 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9504 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9505 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9506 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9507 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9508 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9509 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9510 (tcp) failed: Connection refused
nc: connectx to 47.97.222.122 port 9511 (tcp) failed: Operation timed out

# Operation timed out 表示端口未打开

你可能感兴趣的:(Mac 上查看服务器端口连通性)