Verify the process status by running ps on the command line. The service isn’t running, or a firewall is rejecting the connection. Nc: connect to 203.0.113.96 port 80 (tcp) failed: Connection timed out There is no response to the connection request $ nc -vz 203.0.113.96 80 Nc: connect to 203.0.113.96 port 80 (tcp) failed: Connection refused The connection is refused $ nc -vz 203.0.113.96 80 The following examples show the possible output messages: The connection succeeds $ nc -vz 203.0.113.96 21Ĭonnection to 203.0.113.96 21 port succeeded! The IP address should be the one on which the service receives connections. Type nc on the command line followed by the -vz option with your IP address and port: $ nc -vz IP_address port Run a simple test to verify that the port accepts connections.
#How to remove netcat windows install
If you are running a Red Hat®-based distribution and you don’t have nc installed, type the following command on the command line: $ sudo yum install nc`įor a Debian®-based distribution, type the following command on the command line: $ sudo apt-get install Netcat` Use the Netcat command, nc, to access the service.
If your network service is malfunctioning but you know the service is listening to a network port, you can verify the program connection to troubleshoot the problem. Therefore, Rackspace Technology makes no warranty that the quality of Netcat will meet your expectations. Warning: Netcat’s software creator has not updated the software since 2006.