在 Linux
下
telnet 180.101.49.12 80
# 成功提示
Trying 180.101.49.12...
Connected to 180.101.49.12.
Escape character is '^]'.
在 Mac OS
下
nc -vz -w 2 180.101.49.12 80
# 成功提示
Connection to 180.101.49.12 port 80 [tcp/http] succeeded!
在 Linux
下
telnet 180.101.49.12 80
# 成功提示
Trying 180.101.49.12...
Connected to 180.101.49.12.
Escape character is '^]'.
在 Mac OS
下
nc -vz -w 2 180.101.49.12 80
# 成功提示
Connection to 180.101.49.12 port 80 [tcp/http] succeeded!