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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |