Why does '~$ nc -z T43 1-1024' not produce any output although '~$ ping T43' is successful?
Posted
by
user43816
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user43816
Published on 2012-04-12T15:27:04Z
Indexed on
2012/04/12
17:42 UTC
Read the original article
Hit count: 192
ports
Why does '~$ nc -z T43 1-1024' not produce any output although '~$ ping T43' is successful?
'~$ nc -z -v T43 1-1024' prints 'Connection to T43 22 port [tcp/ssh] succeeded!' and 'nc: connect to T43 port 1000 (tcp) failed: Connection refused.'
'man nc': "PORT SCANNING: It may be useful to know which ports are open and running services on a target machine. The -z flag can be used to tell nc to report open ports, rather than initiate a connection. For example: '$ nc -z host.example.com 20-30'.
© Ask Ubuntu or respective owner