ping command is used to find out whether the remote host is reachable.
Syntax:
ping [hostname/ip]
ping google.com
But you cannot ping ports, thus if you need to find out if the port is open on a remote host, you use TELNET.
Syntax:
telnet [domainname or ip] [port]
If the port is open, you will see a blank screen. This will mean that connection is successful.
Exiting from telnet: Type 'Ctrl]' , and then 'q' or 'quit'
Syntax:
ping [hostname/ip]
ping google.com
But you cannot ping ports, thus if you need to find out if the port is open on a remote host, you use TELNET.
Syntax:
telnet [domainname or ip] [port]
If the port is open, you will see a blank screen. This will mean that connection is successful.
Exiting from telnet: Type 'Ctrl]' , and then 'q' or 'quit'
No comments:
Post a Comment