How to Ping a Port on Linux Ubuntu's Terminal

Written by jonah quant
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Ping a Port on Linux Ubuntu's Terminal
You can find out which application is listening on a remote port. (Hemera Technologies/ Images)

All computers connected to the Internet, and most computers connected to local networks run the Internet Protocol to communicate with each other. The most common protocols on IP implement the concept of "port": a number that, combined with a computer's network address, completely identifies a networking application running on that computer. You can determine which (if any) application is listening on a given port at a given address, from the command line provided by a Terminal on Ubuntu Linux. This is commonly referred to as "pinging" the port.

Skill level:
Moderately Easy

Other People Are Reading


  1. 1

    Log in to any computer, as long as it is connected over the network to the computer where the port to be pinged is. Launch a Terminal session by clicking on "Applications," then selecting "Accessories," then "Terminal."

  2. 2

    Type the following command into the Terminal:

    nmap -p 80

    Replace "80" with the number of the port you want to ping, and "" by the fully qualified name of the host where the port is. Press "Enter."

  3. 3

    Search the output of "nmap" for the result of pinging the port. If the port is listed as "closed," there was no application listening at that port. Otherwise, "nmap" will list it as "open" and will make a (usually good) conjecture about the specific application listening at the port; that will be displayed under the "SERVICE" column.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.