Search

How to test ports using TELNET

Sometimes you may need to test whether a port is open on a remote computer, to troubleshoot network connectivity. There are many port scanners available, but you can also use telnet command from a Windows machine to test whether a port is open in a remote computer.

You may use telnet command similar to below format to text whether is open at remote computer.

telnet <domain_name_or_ip_address> <port_number>

Telnet output when a port is open

Open command prompt in your Windows machine, by searching for cmd at Windows search box, as shown below.

open-cmd-to-test-open-port.jpg

IPv4 address of the remote computer is 192.168.0.229. To test the port is open using telnet, I am using telnet command inside command prompt similar to below format. Here, in this case, port number 80 (HTTP) is open at remote computer. Please make sure that TELNET client is installed in your computer, before using below command. Click following link to learn how to install TELNET client in Windows 10.

telnet 192.168.0.229 80

telnet-command-to-test-open-port.jpg

If the port is open at the remote computer, you can see a blank screen output at command prompt, similar to below image.

telnet-output-port-is-open.jpg

Telnet output when a port is closed

If the port is closed at the remote computer, you can see an error output at command prompt, similar to below image.

telnet-output-port-is-closed.jpg

Related Tutorials
What is TELNET
TELNET modes of operation
TELNET NVT (Network Virtual Terminal)
What is IAC (Interpret as Command) in TELNET
TELNET Commands and Options
TELNET Negotiation
How to install TELNET server in Windows Server using Server Manager
How to install TELNET server in Windows Server using PowerShell
How to start TELNET service in Windows Server
How to connect to Cisco Router using TELNET
How to install TELNET Client in Windows 10
How to use telnet command on Windows and telnet command options
Why TELNET is not secure