Ping a Specific Port

You can’t ping ports, as Ping is using ICMP which is an internet layer protocol that doesn’t have ports. Ports belong to the transport layer protocols like TCP and UDP.

However, you could use nmap to see whether ports are open or not

nmap -p 80 example.com

Edit:
As flokra mentioned, nmap is more than just a ping-for-ports-thingy. It’s the security auditers and hackers best friend and comes with tons of cool options. Check the doc for all possible flags.

Leave a Comment