GithubIireAchao:blog achao$ nc -z -v 127.0.0.1 8000-9000 2>&1 | grep succeeded Connection to 127.0.0.1 port 8000 [tcp/irdmi] succeeded! Connection to 127.0.0.1 port 8001 [tcp/vcom-tunnel] succeeded! Connection to 127.0.0.1 port 8002 [tcp/teradataordbms] succeeded! Connection to 127.0.0.1 port 8003 [tcp/*] succeeded! Connection to 127.0.0.1 port 8004 [tcp/*] succeeded! Connection to 127.0.0.1 port 8005 [tcp/*] succeeded! Connection to 127.0.0.1 port 8006 [tcp/*] succeeded! Connection to 127.0.0.1 port 8021 [tcp/intu-ec-client] succeeded! Connection to 127.0.0.1 port 8023 [tcp/*] succeeded! Connection to 127.0.0.1 port 8055 [tcp/senomix04] succeeded! Connection to 127.0.0.1 port 8686 [tcp/sun-as-jmxrmi] succeeded! Connection to 127.0.0.1 port 8719 [tcp/*] succeeded! Connection to 127.0.0.1 port 8766 [tcp/*] succeeded!