Categories

Tags Cloud

RSS Feed

Subscribe to blog RSS Feed Subscribe to Blog's RSS Feed
NOV
2008
10
0 Comments
133 Hits
Ping a Specific Port
Posted under: Tutorial

Actually you can't ping a specific port by using the ping command to test whether specified port is open or not. The ping command is used to test specified node/host whether it is live or not. It uses ICMP packets (wiki.answers.com). You can test a port whether it is live or not by telneting the port using the telnet command. The telnet command is a utility to connect over TCP and defaults to port 23 (make a TCP connection to port 23 on remote computer/server). But if you specify a different port than 23, then what the telnet command do is opening a TCP connection on the specified port to the remote computer/server.For example (in Windows):

C:\> telnet 192.168.1.1 80

In above example, the telnet command is trying to open HTTP connection (port 80) to the 192.168.1.1 host computer rather than opening the default telnet port (port 23). If the above connection is unsuccessful, then you will get this message:

C:\>telnet 192.168.1.1 80
Connecting To 192.168.1.1...Could not open connection to the host, on port 80: Connect failed

Otherwise, you will prompted to enter another input/arguments for a service of the specified port. If you are dealing with firewall, then typically it blocks TCP/UDP connection in a direction or both direction on the specified port. So firewall didn't deal with "telnet protocol" rather than TCP/UDP connections on specified ports. For example, a firewall on destination host is blocking TCP connection on port 23 (the default telnet protocol port) and not for the other ports. You are telnetting on port 80, your telnet command will be successful, and you will also knew that TCP port 80 on the destination host is open.

Notes:
This tutorial is only applicable if "telnet" command is installed on your computer operating system. On several circumstances this command may not work as expected, especially in a high security enabled network.

Next
Prev

Write Your Comments

Comments are parsed with Markdown.
 
Notes
* Your email is required to submit this form, and it will not be published or shared without your consent. We use your email address to show your avatar picture profile from Gravatar. Don't have one? Then sign up to gravatar and create your own here.
We also filters your comment against SPAM because we hate SPAM as much as you do. If your comment is recognized as SPAM then it will be moderated, otherwise it will shows up immediately.
Form Key: #f6d909ed3bf346e94a4b543dfe9fdc4b
Loading...