Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of checking whether the port is connected by the CVM

Shulou Source: shulou.com Published: 2022-06-03 05:47:50 09月21日 Update

What is the method for the CVM to check whether the port is connected? The Ping command is a commonly used command tool for checking network connectivity on CVM Windows and Linux systems, but ping has a disadvantage that it cannot specify a port. Here we share other tools that can be used to test port connectivity.

Hhping

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

Usage scenario: compared with the ping tool, HPING can use any IP message, including ICMP, TCP, UDP, and RAWSOCKET. Its advantage is that it can customize all parts of the packet and support detailed detection of the destination address.

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

Test-netconnection

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

Displays status diagnostic information for the connection.

Usage scenario: powershell comes with a network testing tool that can be used to test port connectivity. Compared with Psping, the function is relatively simple.

Usage: Test-NetConnection address-port port

Paping

Paping is an open source tool for testing tcp port connectivity under linux. It only supports tcp, 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 udp protocol.

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

Psping

Psping is a testing tool provided by Microsoft, which can be used to test ICMP ping, TCP ping, delay test, bandwidth test and so on.

Usage scenario: you can not only test port connectivity, but also detect network latency. The only limitation is that it is limited to windows systems.

How to use: C:\ PSTools > psping.exe address: Port

The CVM is easy to use, can reinstall the system, change the line, restore the backup, restart, configure FTP and IIS with one click, provide 24-hour assistance with after-sales technology, and link to https://www.yisu.com/cloud/ for CVM products.

Tags: Port test tool method command address support server service usage scenario network system delay that is situation data pattern times test tool Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Shulou Technology Linux NVidia