Let’s be frank here, there is no direct way to ping a specific port in the Windows operating systems. Ping as a tool will only let you ping an IP address and not ping a specific port. This is because ping uses a protocol called ICMP whereas ports use the Transport Layer Protocol (TCP), therefore ICMP has no concept of ports. Ping can only detect a response from an IP address not a response from a specific port.
So, what can you do to get a response from a specific port, how can you ping a specific port?
Below are some programs and methods available to Windows users to ping a specific port on an IP address.
Solutions to ping a specific port
First off this is a command line program so if you don’t know how to run a command line prompt in windows. Move down the list.
I’ve put this at the top of my list because next to Advanced Port Scanner, below, I find this the most useful port scanner and I use it lots.
Download the file from the above location and either save this to a location of your choice or save the file into your windows\system32 if you want to use it from anywhere and you can run it from anywhere in a Windows command prompt window.
Open a command prompt, type CMD, (again, if you don’t know how to do this then move to the next program). Go to Windows search and type: CMD, you’ll get a command prompt window and you can then run paping like this:
Paping -p 21 192.168.1.100
So the syntax is:
Paping -p <port number> <ip address>
This will quickly scan the selected port and return a standard ping response.
Advanced Port Scanner – https://www.advanced-port-scanner.com/
Advanced Port Scanner is a GUI program which will suit most users and this tool can also be used to scan multiple IP addresses and ports at the same time.
Advanced port scanner is great for scanning local IP addresses within your network but isn’t as quick as some of the other methods when used over the internet unless you are very specific with your searches or limit the number of IP addresses and ports in your search.
This is really handy tool for network administrators and in a network environment is great for finding network security issues over your entire network in one shot. I’ve used it extensively over the years to find employees running file sharing services over corporate networks, open ports on supposedly secure routers or to find admin ports on router which have been changed from the default ports.
To use Advanced Port Scanner run the program and in the two top field enter the IP address you want to scan, or range of IP addresses and in the second box select the ports you wish to scan. Eg 1-8000.
Results are shown in the results windows, shown highlighted in red. Open ports are listed in the second windows, shown as no.2 in the above image. These can then be saved in XML, HTML and XML formats. You can also copy this data into the clipboard for use in other apps.
Like paping, nmap is a download and run program not an installable program but this is the daddy of all port pingers if you can get your head round how it works. It can also scan UDP ports as well as TCP ports using command lines like: nmap -sU -p 123,161,162 192.168.1.1
I am not going to go into massive detail about Nmap the links I have included are more then enough to tell you how to install it, how to use it and how to use it extensively.
Download nmap and either run it from your downloads folder or copy it to your windows\system32 folder and it will run from anywhere as with PaPing
Nmap command line example
nmap -p 21 192.168.1.12
If you have telnet enabled on your computer then you can use Telnet to try to connect to a specific port at an IP address. Telnet was originally put into windows many years ago when Windows 95 released to allow user to connect to Telnet servers. Other Telnet programs are available out there on the internet.
If you don’t have telnet then please look here on how to enable Telnet.
To try to connect to a port using telnet you first need to run the telnet program and use then use the command line as thus: open <ip address>:<port number>
On earlier version of Windows Telnet is actually a GUI program, Windows 7 however is command line based.
If you don’t want to install software on your computer then use one of the following online tools. just be aware that these are not as flexible as the programs listed above and some will limit your usage after you’ve used them a few times.
Most of the following let you input an IP address as well as a single port to scan but each tool has its own peculiarities.
Yougetsignal.com – https://www.yougetsignal.com/tools/open-ports/
IP finger prints – https://www.ipfingerprints.com/portscan.php
What’s my ip – https://www.whatismyip.com/port-scanner/