Port Forwarding Still Closed With a Public IP: Layer-by-Layer Diagnosis
Diagnose why port forwarding remains closed despite a public IP by checking DNAT, router and host firewalls, socket binding, upstream NAT, and external testing.

A public IPv4 address on the router removes one major port-forwarding obstacle, but it does not prove that an inbound connection can reach the application. A forwarded service depends on an unbroken path through the ISP, router WAN interface, destination NAT rule, stateful firewall, LAN route, host firewall, and listening socket. A failure at any one of these checkpoints can make an external test report the port as closed.
This diagnosis assumes that you are testing a service and network you own or are authorized to administer. Do not scan third-party systems or expose an unnecessary management interface merely to obtain an open result.
Confirm That the Router Actually Has a Public IPv4 Address
Open the router administration interface and record the IPv4 address assigned to its active WAN interface. Then check the address visible to websites with What Is My IP. Compare IPv4 with IPv4; an IPv6 address cannot validate an IPv4 port-forwarding path.
If the router WAN address and browser-visible public IPv4 match, the router is probably receiving a public address directly. If they differ, another translation boundary may exist upstream. Addresses from 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 indicate a private upstream network. An address from 100.64.0.0/10 indicates RFC 6598 shared address space commonly used for Carrier-Grade NAT.
When the addresses differ, follow the WAN IP and public IP comparison procedure before modifying more forwarding rules. Local Double NAT may be removable through Bridge Mode or Access Point Mode, but ISP-controlled CGNAT normally requires a public IPv4 option, native IPv6, or an authorized outbound tunnel.
Trace One Packet Through Every Enforcement Point
An inbound TCP connection begins with a SYN packet addressed to the router's public IPv4 and external port. The packet must reach the correct WAN interface, match a DNAT or virtual-server rule, pass the router's forward-chain policy, route to the correct LAN host, pass the host firewall, and reach a process listening on the expected transport and port.
Do not repeatedly recreate the same forwarding rule without collecting evidence. Follow the packet in order. The first failed checkpoint is more useful than a generic closed-port result.

| Layer | Evidence to collect | Common failure |
|---|---|---|
| ISP and WAN | Current public IPv4, active WAN interface, ISP filtering policy | Stale address, CGNAT, upstream gateway, or blocked inbound port |
| DNAT | External port, internal address, internal port, transport protocol | Wrong destination lease, wrong port, or TCP/UDP mismatch |
| Router firewall | Forward-chain rule, source restriction, connection log | DNAT occurs but forwarded traffic is dropped |
| LAN host | Current address, route, local firewall profile | DHCP lease changed or host firewall blocks the packet |
| Application | Listening address, port, protocol, application log | Service stopped, loopback-only binding, or wrong socket |
| External test | Test source, timestamp, service state, returned result | Hairpin test, stale result, or service unavailable during test |
Prove the Service Is Listening Before Testing the Router
Port forwarding cannot create a listening application. Verify the service locally on the destination device before testing from the Internet. Inspect the operating-system socket table, application status page, container mapping, or service log. Confirm the exact local address, port, and protocol.
A process bound to 127.0.0.1 accepts only loopback traffic generated by the same host. It cannot receive a packet forwarded from the router. A process bound to the host's LAN address, such as 192.168.1.100, can accept traffic arriving on that interface. A wildcard binding such as 0.0.0.0 may listen on all IPv4 interfaces, subject to application and firewall policy.
TCP and UDP are separate transports. A TCP connection test does not verify a UDP-only game server, VPN endpoint, discovery service, or real-time application. Some software uses one port for control and another for media or discovery. Verify the manufacturer's protocol documentation instead of selecting “both” without understanding the requirement.

Test the Application From Inside the LAN
From another device on the same LAN, connect to the destination host's private address and service port. This test bypasses the router's public DNAT path but confirms that the application, LAN connectivity, and part of the host firewall configuration are working.
If the service fails locally, repair the application or host before changing the router. Check whether the service started successfully, whether a container published the correct host port, whether the operating system classified the network as public or private, and whether endpoint-security software has its own inbound policy.
Keep the Destination Address Stable
A forwarding rule points to a specific internal address. If DHCP later assigns that address to another device, or gives the server a different lease, the rule silently targets the wrong host. Create a DHCP reservation on the router or configure a documented static address outside the dynamic allocation pool.
The destination must remain inside the correct LAN subnet and use the correct default gateway. Avoid assigning the network address, broadcast address, router address, or an address already used by another client. The Static IP and DHCP Reservation Planner can help allocate a stable address without creating a conflict.
Audit Every Field in the Port-Forwarding Rule
Router interfaces use different labels, including Port Forwarding, Virtual Server, NAT Rule, Destination NAT, and Inbound Service. Regardless of the label, verify every field against the actual service.
| Rule field | Required verification |
|---|---|
| WAN interface | The rule applies to the active Internet connection |
| External port | Matches the port entered in the external test |
| Internal address | Matches the destination device's current reserved address |
| Internal port | Matches the application's actual listening port |
| Protocol | TCP, UDP, or separate rules as required by the service |
| Source address | Allows the authorized remote source without being unnecessarily broad |
| Schedule | The rule is active during the test |
| Status | The rule is enabled and saved to the running configuration |
Use the port-forwarding rule planner to prepare the external port, destination address, internal port, and transport before entering the rule. If an unfamiliar service number appears, review it with the common network ports lookup.
Understand DNAT and Stateful Firewall Processing
Destination NAT changes the packet's destination from the public address and external port to the private host and internal port. DNAT alone does not guarantee permission. A stateful firewall must also allow the newly forwarded flow from the WAN zone to the LAN zone.
Consumer routers often create the required firewall permission automatically when a port-forwarding rule is saved. Advanced gateways may separate the NAT rule from the firewall policy. In that design, the translation can be correct while the forward chain still drops the packet.
Review firewall logs, connection-tracking entries, rule counters, or packet captures where available. If the DNAT counter increases but the application receives nothing, inspect the router forward policy, LAN route, and host firewall next.
Check UPnP, DMZ, and Conflicting Rules
Universal Plug and Play can create temporary port mappings for applications. A dynamic UPnP mapping may overlap with, replace, or obscure a manual rule. Audit the active mapping table and read the UPnP security and configuration analysis before enabling it as a troubleshooting shortcut.
Do not place the host in a broad DMZ merely to make a port test pass. A DMZ or exposed-host setting can forward a large range of unsolicited traffic while leaving the underlying service, firewall, and security problems unresolved. If a temporary isolation test is absolutely necessary, keep it brief, authorized, monitored, and remove it immediately afterward.
Recheck Double NAT and Upstream Equipment
A separate modem-router, fiber ONT gateway, mesh router, or ISP-managed device can create another NAT boundary. In that topology, a forwarding rule on the personal router receives no packet unless the upstream device also forwards the port or operates in an appropriate bridge or passthrough mode.
Compare the personal router's WAN address with the public address. If its WAN address is private, inspect the upstream topology with the Double NAT Checker. Do not confuse a DMZ host with a true Layer 2 bridge: DMZ forwarding normally leaves the upstream NAT boundary active.
Use a Valid External Test
Keep the destination service running and test from mobile data or another authorized external connection. A device inside the same LAN testing the router's public address depends on NAT reflection, also called NAT loopback or hairpin NAT. Some routers support it, some require a separate option, and others do not support it reliably.
An internal hairpin failure does not prove that external forwarding is broken. Conversely, a locally cached web page does not prove that the public service is reachable. Use a genuine external path and record the exact test time so router and host logs can be correlated.

Interpret Open, Refused, and Timeout Results Carefully
| Result | Likely meaning | Next evidence |
|---|---|---|
| Open | A TCP handshake completed with a listening service | Review authentication, patching, logs, and exposure scope |
| Refused | The destination may be reachable, but no service accepted the TCP connection | Verify listener state, port, container mapping, and host firewall rejection |
| Timeout | A device may be silently dropping traffic, or the route is incomplete | Inspect ISP filtering, upstream NAT, router firewall, host firewall, and address accuracy |
These outcomes are diagnostic clues, not absolute proof of which device failed. UDP is especially difficult to classify with a generic scanner because it has no TCP-style handshake. Use application-specific logs and authorized packet captures when necessary.
Check ISP Port Filtering and Dynamic Address Changes
Some ISPs filter selected inbound ports or block unsolicited residential traffic. Others change the public address after a reconnect or lease renewal. Reconfirm the router WAN address immediately before each test. If the service worked previously, compare the current address with the address used by DNS or a remote client.
VPN software, proxy services, multi-WAN routing, or mobile-data fallback can also cause the browser to display an address unrelated to the router's inbound path. Perform the comparison from a device connected only to the relevant router and temporarily disable unrelated tunnels.
Do Not Treat an Open Port as a Security Pass
An open result proves reachability, not safety. Expose only a necessary, maintained, and authenticated service. Restrict permitted source addresses when practical, install updates, replace default credentials, monitor authentication logs, and remove the rule when it is no longer required.
Never expose a router administration interface, Telnet, SMB, a database listener, or an unauthenticated camera interface simply to make a checker report open. A maintained VPN with strong authentication is usually safer than publishing several administrative services directly.
After the configuration is complete, review the broader router security settings checklist and test only systems you own with the safe TCP Open Port Checker.
Layer-by-Layer Diagnostic Checklist
- Confirm that the router WAN IPv4 matches the current public IPv4.
- Rule out CGNAT, Double NAT, VPN interference, and stale DNS records.
- Verify that the application is running and listening on the correct address, port, and protocol.
- Confirm that the service works from another device on the LAN.
- Reserve the destination host's private address.
- Audit the forwarding rule's WAN interface, ports, protocol, source restriction, and schedule.
- Verify both DNAT processing and the router's forward-chain permission.
- Inspect the host firewall and endpoint-security policy.
- Remove conflicting UPnP, duplicate, or obsolete rules.
- Test from a genuinely external network while the service is active.
- Correlate the test timestamp with router, firewall, and application logs.
- Harden the exposed service and document the final configuration.
Conclusion
A public IP address is necessary for conventional IPv4 port forwarding, but it is only the beginning of the diagnosis. A successful inbound connection requires correct addressing, destination translation, firewall permission, LAN routing, host policy, and an active listening socket.
Work from the application outward and then follow one external packet inward. This evidence-based sequence isolates the failed layer faster than repeatedly changing random router settings, while also reducing the risk of exposing an insecure service.
For an IPv6 inbound test, do not publish a rotating temporary or deprecated address. First review how stable, temporary, global, and link-local IPv6 addresses differ, then verify the active global prefix, DNS record, router firewall, host firewall, and service binding.

Comments
Leave a Comment
Your email address will not be published. Comments are reviewed before appearing.