nc -v verbose, Have nc give more verbose output
-z Specifies that nc should just scan for listening daemons, without
sending any data to them. It is an error to use this option in
conjunction with the -l option
-n Do not do any DNS or service lookups on any specified addresses,
hostnames or ports.
[test@test ~]$ nc -vz 192.20.20.168 8899
Connection to 192.20.20.168 8899 port [tcp/ospf-lite] succeeded!
[test@test ~]$ nc -vz 192.20.20.168 8080
Connection to 192.20.20.168 8080 port [tcp/webcache] succeeded!
[fbs2@fbs ~]$ nc -vz 192.20.20.114 8899
nc: connect to 192.20.20.114 port 8899 (tcp) failed: Connection timed out
没有回复内容