Guides

Step-by-step tutorials and practical fixes for networks, servers, and daily technical work.
Network Guides

How to Check If a Port Is Open (Telnet)

Test whether a TCP port is reachable using telnet or netcat.

Real example

A website, mail server, or database connection is failing. Before blaming the application, first confirm whether the target port is actually reachable from your system.

Before you start

You need the correct host or IP address.
You need the exact port number.
Telnet may not be installed by default.

Possible causes

Service is not listening on the target port
Firewall is blocking the connection
Wrong host or wrong port number
Route or security group is blocking access

Step-by-step instructions

1. Test the port with telnet

Run a telnet test against the target host and port.

Command
telnet example.com 80

2. Use netcat if telnet is unavailable

Netcat gives a simple result and is often easier to use.

Command
nc -vz example.com 80

3. Compare with another known port

Test another known service to see whether the problem is specific to one port.

Example
telnet example.com 443

4. Interpret the result carefully

A successful TCP connection means the port is reachable, but it does not guarantee the application behind it is fully healthy.

Common mistakes

Using the wrong hostname or testing the wrong port number.

Assuming an open port means the full application is working normally.

Environment tips

Windows: telnet client may need to be enabled first.

Linux: netcat is often faster and clearer than telnet.

Final check

Port testing is a quick way to separate network reachability problems from application-layer problems. If the port is closed or timing out, check service status, firewall rules, and routing next.

About this guide

Check whether a TCP port is reachable by using telnet or netcat from the command line.

How to follow this guide

  1. Get the host and port number
  2. Test with telnet
  3. Use netcat if telnet is unavailable
  4. Interpret success or failure carefully

Why use this method?

Direct port testing helps confirm whether a service is reachable and whether the network path is open.