How do I ping a specific port of a remote server? I need to find out whether the port on the remote server is open. system.
ping utility does not allow you to ping specific port on you remote server. To see whether a specific port is open on a remote server you can use port-scanner such as nmap or simply try connect to a socket ( IP-addressort ) using telnet. In the example below we test whether a port number of TCP port 80 is open a host google.com:
# nmap -p 80 -sT google.comor
# nmap -p 80 google.comTo test a UDP port 80 use:
# nmap -p 80 -sU google.comother way to test whether a specific port is open on a remote server is to use telnet command. Below we test whether a port 443 on host google.com is open:
# telnet google.com 443 Trying 220.127.116.11... Connected to google.com. Escape character is '^]'.