Troubleshooting · 4 min read

Port forwarding not working? Test open ports from outside

Port forwarding failures are among the most common network issues, yet diagnosis is straightforward if you follow a systematic approach. The core problem is simple: you cannot see from inside your network whether external traffic actually reaches your forwarded port. This guide walks you through the verification steps that will tell you exactly where the problem lies.

Understand what port forwarding actually does

Port forwarding (also called static NAT or port translation) tells your gateway device to accept inbound traffic on a specific port and redirect it to an internal IP and port. For example, forwarding external port 8080 to internal 192.168.1.50:80 means external clients connecting to your public IP on port 8080 reach the web server on 192.168.1.50. The rule exists on your gateway, firewall, or router. If it does not work, the problem is almost always one of: the rule is not configured, the rule is misconfigured, an upstream firewall blocks the port, or the internal service is not listening on the expected port.

Step 1: Verify the internal service is listening

Before testing from outside, confirm the service actually listens on the internal IP and port you specified in the forwarding rule. Log into the internal machine and check.

On Linux, use netstat or ss:

ss -tlnp | grep :80
netstat -tlnp | grep :80

On Windows, use netstat:

netstat -ano | findstr :80

Look for a line showing LISTEN on the correct port. If you see nothing, the service is not running or is bound to the wrong port. Start the service or adjust its configuration.

Step 2: Test from inside your network first

From a different machine on your internal network, attempt to connect to the internal IP and port directly. This confirms the service responds to traffic.

curl http://192.168.1.50:80
telnet 192.168.1.50 80

If this fails, the service is not responding or is blocking your client IP. If it succeeds, the service is healthy and you can move to external testing.

Step 3: Test the external port from outside your network

This is the critical step. You must test from a device outside your network, using your public IP address and the forwarded external port. Do not test from inside your network; you will get false results because internal traffic may bypass NAT or be handled differently.

From an external machine or a mobile device on cellular (not your WiFi), run:

curl http://YOUR_PUBLIC_IP:8080
telnet YOUR_PUBLIC_IP 8080

Replace YOUR_PUBLIC_IP with your actual public IP address. If you do not know it, check a public IP lookup service or log into your gateway and view its WAN interface.

Possible outcomes:

Step 4: Verify your gateway configuration

If external testing fails, log into your gateway, firewall, or router and confirm the port forwarding rule exists and is enabled. Check that the external port, internal IP, and internal port match your test. Many devices allow you to view active NAT sessions or translation statistics; use these to see if traffic is even hitting the rule. If the rule is present but traffic is not matching it, check access control lists, firewall policies, or upstream WAN filters that may block the port before it reaches the forwarding engine.

Use an automated port checker for quick diagnosis

Running manual tests from external machines is reliable but time-consuming. A dedicated port checker tool eliminates the guesswork by testing from multiple external locations and reporting exactly what it finds. This saves you from setting up test clients and gives you a clear pass-or-fail result in seconds.

Open Port Checker
Test if your forwarded port is reachable from the internet right now
Open →
Every Elematron tool is free for everyone — no account, no limits.
Browse free tools →
Free tools for this
More from the blog
FortiGate Model Selection: Throughput and CPU MatchingRead →F5 Health Monitor Interval and Timeout TuningRead →