Are you still pinging? 7 advanced methods to help you quickly test port connectivity

Are you still pinging? 7 advanced methods to help you quickly test port connectivity

Ping is a command tool for checking network connectivity in Windows, Linux, and Unix systems. It is very practical and convenient for most Internet users, but ping has a disadvantage: it cannot specify a port. If the source address is set to prohibit ping, the ping command is useless.

In order to make up for the characteristics of ping, we usually use ping and telnet together. We can check network connectivity through ping and specify ports through telnet. Ping and telnet are two indispensable command tools in our operation and maintenance work. I believe everyone is familiar with them, so I don’t want to introduce ping and telnet in detail.

In addition to them, what other tools can be used to test port connectivity? Here I would like to share with you some other tools.

1. NMap

The full name is Network Mapper, which is a network scanning and sniffing toolkit under Linux, also known as the "king of system vulnerability scanning".

Usage scenarios: nmap provides some basic functions, such as host discovery, port scanning, service scanning, system scanning, etc. It can not only test port connectivity, but also obtain information such as the service type, status, port and protocol of the address.

Usage: nmap -p port address

2. Netcat

nc is the abbreviation of netcat. Because it is short and powerful, practical, and designed as a simple and reliable network tool.

Usage scenarios: NC provides us with four major functions (initiating port listening as a server, scanning ports as a client, transferring files, and testing network speed) with fast response speed.

Usage: nc -vz address port

3. Paping

Paping is an open source tool for testing TCP port connectivity under Linux. It only supports TCP but not UDP.

Usage scenario: PaPing can not only test port connectivity, but also detect network latency. The only drawback is that it does not support the UDP protocol.

Usage: ./paping -p port -c times address

4. cURL

cURL is a file transfer tool that works on the command line using URL syntax.

Usage scenarios: cURL supports many communication protocols, such as FTP, HTTP, HTTPS, SCP, Telnet, IMAP, POP3, SMTP, etc., but curl is mainly used for file transfer, such as using curl to call API.

Usage: curl address:port

5. Psping

Psping is a testing tool provided by Microsoft that can be used to test ICMP ping, TCP ping, delay test, bandwidth test, etc.

Usage scenario: It can not only test port connectivity, but also detect network latency. The only limitation is that it is only available on Windows systems.

How to use: C:PSTools>psping.exe Address: Port

6. Hhping

Hping is a TCP/IP data packet assembly/analysis tool used in the command line. Its command mode is similar to the ping command under Unix, but it can not only send ICMP echo requests, it can also support TCP, UDP, ICMP and RAW-IP protocols. It has a routing tracking mode that can transfer files between two mutually inclusive channels.

Usage scenarios: Compared with the ping tool, HPING can use any IP packet, including ICMP, TCP, UDP, and RAWSOCKET. Its advantage is that it can customize each part of the data packet and support detailed detection of the target address.

Usage: hping address -S -V -c times -p port

7. Test-netconnection

The Test-NetConnection cmdlet displays diagnostic information for a connection.

Usage scenario: A network testing tool that comes with PowerShell. It can be used to test port connectivity. Compared with Psping, its functions are relatively simple.

Usage: Test-NetConnection address-port port

<<:  The battle between local deployment and cloud-managed WLAN architecture

>>:  IT Viewpoint: Five major network challenges for 2019

Recommend

How small businesses will benefit from 5G

Before enough new devices enter the mainstream ma...

How high is the spectrum efficiency of 5G?

Wireless spectrum is the most valuable resource f...

Will the withdrawal of 2G network affect you?

I remember in 2018, my father's mobile phone ...

What you need to do to prevent data center downtime

Recently, according to a survey report on data ce...

Share an interesting data analysis method

[[405125]] This film note is a development summar...

I'm stunned! Why is the latency so high for a simple HTTP call?

Recently, a strange phenomenon occurred during pr...

"Edge computing" has become the core keyword of 5G

How fast is 5G? The upgrade from 4G to 5G is comp...

What is a Computer Network Hub?

Quick definition: A computer network hub is a lay...