What Port Does Ping Use

Thursday, Aug 22, 2024 | 2 minutes read | Update at Thursday, Aug 22, 2024

@ İsmail Baydan

The ping is a popular command, tool or action to check network connectivity. Ping simply send packets to the destination hostname or IP address and waits for the response. If there is a response this simply means the remote host or IP address is up and responding properly. Most of the network tools and protocols use TCP or UDP ports for communication and data transmission. We can ask what post does ping use?. In this tutorial we examine this question in different ways and perspectives.

Ping Uses ICMP or ARP

TCP and UDP are popular network protocols and we may think that the ping command also uses TCP or UDP. But the ping command does not use TCP or UDP . It uses ICMP or ARP protocols. The ICMP is heavily used by ping command. The ICMP packages redirected to the destination and if the remote host or IP address is alive response packet get back.

Does ping Use TCP or UDP

Nope most of the ping command implementations does not use and provide the TCP or UDP protocol usage. As stated previously ping commands mainly use ICMP and ARP protocol and those protocols do not provides any port number.

Ping with ICMP

The ping command uses ICMP by default. In the following example we ping the google.com with the ICMP packages by using the ping command.

ping google.com

© 2024 Linux and Python Tutorials

🌱 Powered by Hugo with theme Dream.