Port checks: timeout, closed, and what each tells you
A timeout and a refusal are different answers with different causes. How to tell which you have and work through a port forward that is not working.
Run the check
An open port checker gives one of three answers, and the two failures are not the same failure. Knowing which one you have narrows the problem from "it does not work" to one of a handful of specific causes.
The three results
Open
The TCP handshake completed. Something is listening on that port and accepted a connection from the public internet. Routing works, every firewall in the path allowed it, and the service is running.
Closed
The connection was actively refused. The packet reached the host, the host replied with a TCP reset, and that reply came back.
This is more informative than it looks. A refusal proves the whole network path works in both directions. The address is right, routing is fine, nothing silently dropped the packet. All that is missing is a process listening on that port.
Usual causes: the service is not running; it is listening on a different port than you think; or it is bound to
127.0.0.1 rather than 0.0.0.0, so it accepts local connections only.
Timeout
Nothing came back at all. The connection attempt was sent and no response of any kind arrived before the timeout.
Silence means something dropped the packet rather than refusing it, and dropping is what firewalls do by default — a refusal would confirm the host exists. So a timeout usually means a firewall, a security group or a missing port forward, not a stopped service.
It can also mean the port forward sends traffic to the wrong internal address, so the packet is delivered somewhere that ignores it.
The distinction in one table
| Closed | Timeout | |
|---|---|---|
| What happened | Host replied with a reset | No reply at all |
| Proves | The path works end to end | Nothing about the path |
| Most likely cause | Nothing listening on that port | Firewall, security group, or missing forward |
| Look at | The service itself, and what it binds to | Firewall rules and the forward |
Why it works locally but not from outside
This is the usual shape of the problem, and the reason a checker like this exists. Testing from inside your own network proves almost nothing: your traffic never leaves, so it never meets the firewall, the port forward or your ISP. A check run from elsewhere tests the path a real user takes.
Working through a port forward that is not working
1. Confirm the service is actually listening
On the host itself:
# Linux
sudo ss -tlnp | grep :8080
# macOS
sudo lsof -iTCP -sTCP:LISTEN -n -P | grep 8080
# Windows
netstat -ano | findstr :8080
Read the address column carefully. 0.0.0.0:8080 or [::]:8080 means it accepts
connections on any interface. 127.0.0.1:8080 means local only, and no amount of firewall work will
make that reachable — it is a configuration change in the application.
2. Check the host firewall
Easy to forget when a router forward is the thing you are thinking about.
# Linux, ufw
sudo ufw status
# Linux, firewalld
sudo firewall-cmd --list-all
# Windows
Get-NetFirewallRule -Enabled True -Direction Inbound | Where-Object DisplayName -like "*8080*"
3. Check the forward matches reality
On the router, verify the internal address the forward points at is still the server's address. This is a frequent cause of a forward that worked for months and then stopped: the server rebooted and DHCP gave it a different address. Give the server a static address or a DHCP reservation.
Also check the external and internal port numbers are what you expect, and the protocol is TCP.
4. Confirm your public address
Check you are testing the right address with the public IP tool. Residential addresses change, and a dynamic DNS name can be stale. If your address has changed since the name was updated, you are testing somebody else's connection.
5. Consider carrier-grade NAT
If the address on your router's WAN interface is in 100.64.0.0/10, you are behind carrier-grade NAT
and share a public address with other customers. Inbound port forwarding cannot work in that situation, no matter
how the router is configured. The fix is to ask your ISP for a public address, or to use a tunnel or VPN that does
not require inbound connections.
6. Rule out the upstream block
Many ISPs block inbound connections on certain ports regardless of your configuration. 25, 80 and 445 are the common ones on consumer connections. If one specific port times out while others on the same host are open, this is a likely explanation. Test with a port that is not commonly blocked, such as 8080, to separate the two cases.
A note on port 25 specifically
Outbound connections on TCP 25 are blocked by many hosting providers, including the one this service runs on, to limit spam from compromised machines. A check against port 25 from here will always time out, and that result says nothing at all about your server. For mail submission, test 465 or 587 instead, which is what a client would actually use. The port checker says so on the page rather than reporting a timeout as though it were a verdict on your host.
What a port check does not tell you
That the service is healthy. Open means a TCP connection was accepted. An HTTP server returning 500 to every request is open.
Which service is behind it. The port number is a convention, not a guarantee.
That it is secure. Open means reachable. Whether it should be reachable is a separate question worth asking: a database port open to the internet is a finding, not a success.
More in the guides index.