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
Possible causes
Step-by-step instructions
1. Test the port with telnet
Run a telnet test against the target host and port.
telnet example.com 80
2. Use netcat if telnet is unavailable
Netcat gives a simple result and is often easier to use.
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.
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
- Get the host and port number
- Test with telnet
- Use netcat if telnet is unavailable
- 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.