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 25 23 (make a TCP connection to port 25 23 on remote computer/server). But if you specify a different port than 25 23, then what the telnet command do is opening a TCP connection on the specified port to the remote computer/server.





