Blocked port checking with Telnet

kumkumsharma

Administrator
Staff member
Telnet command is used to tests port connections between server, router and websites. You can check the mail related issue with this command.

Let’s check how to check blocked port:

If your port 21 is blocked by server or firewall then you can check this with below command.

Code:
Telnet domainname.com 21
If your port is blocked then you can see below result:

Code:
Trying 1.2.3.4...
telnet: Unable to connect to remote host: Connection refused
If your port is open then you can check below result.

You have to press ctrl+] to continue with the prompt and then type quit and then enter to close Telnet connection.

Now check port 22 is blocked by your local network or server firewall.

Code:
telnet server.hostname.com 22
Here hostname is server hostname or server IP address.

Code:
Trying 1.2.3.5...
Connected to your-domain.com.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.3
If still you are getting the issue then you have to use traceroute/tracepath etc. To resolve the issue.
 
Top