Check the prerequisites first
IPv4 port forwarding maps an incoming connection on a router's WAN port to a LAN address and port. It needs a reachable upstream path, a running service and permission to manage the network. It is not required for ordinary web browsing.
Read the application's documentation for its exact TCP or UDP port. Find the server's LAN address and reserve it in DHCP if the router supports reservations. Confirm another LAN device can reach the service. A service bound only to 127.0.0.1 is not reachable from other devices; select the intended LAN interface in its settings.
Add one narrow router rule
Open your router's documented administration interface. Menu names and fields vary by model and firmware; the TP-Link reference below is an example, not instructions for every router. Save the current configuration before editing.
| Field | Example only |
|---|---|
| External port | 8443 |
| Internal address | 192.168.1.23 |
| Internal port | 8443 |
| Protocol | TCP only if the service requires TCP |
Replace all example values with your service's settings. Enable the rule and allow only the necessary inbound traffic in the server's firewall. Do not turn off the whole firewall or expose every port through a DMZ setting. If supported, limit allowed source addresses. Remove the rule when it is no longer needed.
Check public IPv4, CGNAT and double NAT
Compare the router's WAN IPv4 with the IPv4 shown on My IP, using the same connection and accounting for VPNs or proxies. The shared range 100.64.0.0/10 runs from 100.64.0.0 to 100.127.255.255 and is reserved for service-provider shared addressing. Private WAN addresses can indicate another local router.
A mismatch is a clue, not proof of CGNAT: multiple WANs, VPNs or comparing IPv4 with IPv6 can mislead. Ask the ISP about your actual inbound-access options. Your router's rule cannot by itself configure an upstream NAT. For double NAT, coordinate rules on both devices or a provider-approved network change; do not switch an ISP gateway to bridge mode blindly.
Test the intended path
Use an outside connection, such as mobile data with Wi-Fi off, to test a service you own. A test from the same LAN can fail because the router lacks NAT loopback even when outside access works.
The IPDidi port checker attempts TCP connections from Cloudflare to the address seen for your current request. Check its displayed address and IP family first: a VPN exit or IPv6 address may not be the IPv4 WAN you intended. The tool cannot automatically read your router's WAN address.
- An open result confirms a TCP connection at that address and time, not application health, authentication or safety.
- Closed or timeout results do not locate the fault. Check the listener, both firewalls, mapping, upstream network and test restrictions. This tool's failure categories include inference from connection errors and timing.
- Blocked or unavailable means the check may not have been attempted. Port 25 and some Cloudflare destinations are restricted; rate limits also apply.
TCP success says nothing about a UDP-only service. Test UDP with its actual application from outside. For a Windows LAN TCP check, Microsoft's Test-NetConnection supports -Port; that remains a TCP check from the machine running it.
Alternatives and exposure limits
Dynamic public IPv4 can work; DDNS tracks address changes but does not remove CGNAT or firewall blocks. A managed private-access tunnel may suit personal administration, subject to its own configuration and access controls. IPv6 uses a separate reachable address and firewall policy rather than this IPv4 mapping; check it separately with the IPv6 test.
Keep exposed software updated and authenticated. Avoid direct public exposure of router administration, SMB or remote desktop; changing the port number is not a substitute for access control.
Common questions
The port is open. Is the setup safe?
That result only confirms a TCP connection. It does not audit the service or prove that an expected login or encryption policy is enforced.
Should I open TCP and UDP together?
Only if the application's documentation requires both. Do not broaden a rule simply because a TCP test fails.
Sources and scope
Sources checked on 2026-11-10. This is a configuration and diagnostic guide, not a claim that we changed a router or tested a real network. Menu details remain model-specific.