Free network utility

Port Forwarding Planner

Build a clear port-forwarding rule without scanning a router or testing an open port.

Readiness evidence already confirmed

This browser-side planner creates no router or firewall rule and performs no port test. Do not expose router administration, databases, remote desktop, or other sensitive services directly to the internet; prefer an authenticated VPN where practical.

Planning output based on your inputs

The calculation checks the supplied values against standard networking rules. It cannot account for every router, switch, ISP, firmware, device limit, or existing configuration.

Before relying on the result: Record the current settings, change one item at a time, test the network, and keep a rollback path.

What this port forwarding planner does

Enter the target private IPv4 address, router LAN address and prefix, transport protocol, external and internal ports, WAN-address status, source policy, and readiness evidence. RouterNAT validates that the target and router belong to the same ordinary LAN subnet, identifies topology blockers such as private upstream WAN or CGNAT, highlights sensitive service ports, and produces a human-readable NAT mapping. It does not connect to the router, open a firewall, contact the target, test a port, discover the public IP, or prove that the service is secure. The output is an implementation checklist for an authorized network, not a configuration command or reachability result.

How a destination NAT mapping changes packets

An inbound IPv4 connection reaches the router's WAN address with a destination transport port. A matching destination NAT or port-forward rule rewrites that destination to a private LAN address and usually an internal port. Stateful firewall and connection tracking record the translation so reply traffic can be translated back consistently. The target host normally sees the router or original remote source according to platform behavior and additional NAT rules. The basic tuple includes WAN interface or address, protocol, external port, internal address, and internal port. Every field matters. Forwarding TCP when the application uses UDP, or mapping external 8443 to internal 8443 when the service listens on 443, cannot be repaired by repeated testing.

External and internal ports may differ

The public-facing port is what a remote client contacts; the internal port is where the LAN service listens. A mapping such as TCP 8443 to 192.168.1.50:443 is valid when the application and client instructions intentionally use that translation. Changing the external number can reduce accidental background noise, but it does not provide meaningful authentication or patch a vulnerable service. Automated discovery can still identify exposed applications. Document both endpoints in firewall policy, monitoring, DNS or client configuration, and recovery notes. Avoid overlapping WAN rules for the same address, protocol, and external port. Some routers cannot translate port ranges or mixed protocols exactly as a planning interface suggests.

The target address must remain stable

A forward that points to a DHCP address can silently break when the lease moves to another device. Use a documented DHCP reservation tied to the active client identifier, or a carefully managed manual static address outside accidental dynamic allocation. Confirm the target, gateway, prefix, and DNS configuration. Modern clients may use randomized MAC addresses, so the label MAC is not always the identifier used on a particular Wi-Fi network. After a device replacement, update or reservation change, recheck the rule destination. RouterNAT verifies only that the entered private target is in the entered router LAN subnet; it cannot know whether that address is currently assigned, duplicated, reachable, or owned by the intended service.

A listening service is required

NAT creates a path but does not create the application. For TCP, the target must have a socket listening on the intended LAN interface and internal port. A process bound only to 127.0.0.1 cannot normally accept connections forwarded to the host's LAN address. For UDP, the application must be running and capable of responding to the actual protocol; silence does not always distinguish an open service from filtering. Test the service locally on the host, then from another authorized LAN device, before changing the router. Check process ownership, bind address, container publishing, virtual-machine networking, and application logs. Do not start an unnecessary service merely to make a checker report open.

Host and router firewalls are separate controls

A correct NAT translation can still be blocked by the router's WAN firewall, an automatically generated policy rule, the target operating-system firewall, endpoint security, a container host, a hypervisor, or a cloud security group. Create the narrowest required inbound rule for the correct protocol, destination, interface, profile, and authorized source addresses. Do not permanently disable a firewall as a fix. Review logs or packet counters to see which layer received and rejected the attempt. Some systems generate a firewall rule with the NAT entry while others require a separate rule whose destination is the translated internal address. Follow current vendor documentation rather than copying a screenshot from another firmware version.

Public WAN ownership comes before router rules

Ordinary inbound IPv4 forwarding requires traffic to reach an address controlled by the edge router. Compare the router's WAN IPv4 with the public IPv4 observed from the same connection while VPN, proxy, mobile data, and alternate WAN paths are excluded. A WAN address in 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16 indicates another upstream NAT layer. A value in 100.64.0.0/10 indicates shared address space commonly used for carrier-grade NAT. If the values differ, the local rule may be correct yet unreachable because an upstream translator also controls the path. Dynamic DNS does not bypass NAT; it only maps a name to an address.

Double NAT and CGNAT require different decisions

With double NAT under your control, the upstream gateway can sometimes be placed in bridge mode, the downstream router can be converted to access-point mode, or a narrowly matched rule can be created on both layers. Each option changes routing, firewall, DHCP, Wi-Fi, and management ownership, so preserve a rollback path. Under provider CGNAT, the subscriber cannot create the missing mapping on the carrier translator. Ask the ISP about a public IPv4 option, use a properly secured outbound tunnel or VPN design, or use IPv6 where the application and security policy support it. Never expose a management interface simply to work around an address-ownership limitation.

TCP and UDP testing are not interchangeable

A TCP checker attempts a handshake. A successful connection proves that something accepted TCP at that moment, not that the intended application is safe or functioning correctly. A refused connection can indicate that the packet reached a host with no listener, while a timeout can arise from filtering, routing, NAT, or silent application behavior. UDP has no universal handshake; an application-specific request and valid response, logs, packet capture, or ICMP error may be needed. Selecting TCP/UDP means two separate rules and two different validation paths on many routers. Do not interpret a TCP-only web checker as evidence about a game, voice, DNS, VPN, or streaming protocol that uses UDP.

Test from a genuinely external path

Connecting to the public address from inside the same LAN depends on NAT reflection, NAT loopback, or hairpin behavior. Failure inside does not necessarily mean the external mapping is broken, and success can exercise a different path. Use an authorized device on another connection, such as mobile data with Wi-Fi disabled, while the service is actively listening. Ensure the tester targets the current public IPv4 and correct external port. Record time, source, protocol, logs, and observed result. A port checker should test only an address and service you own or are authorized to administer. Repeated broad scans are unnecessary for validating one planned rule.

Restrict sources and minimize exposed services

If the router supports source-address restrictions, permit only the trusted remote networks needed for the use case. Source addresses can change and can be spoofed for some stateless traffic, so restriction complements rather than replaces strong authentication and encryption. Avoid publishing router administration, remote desktop, SMB, databases, storage consoles, container APIs, development servers, or legacy plaintext services directly to the internet. Prefer an authenticated VPN, zero-trust access broker, bastion, reverse proxy with application authentication, or vendor-supported secure remote-access architecture. Apply security updates, use unique credentials and multifactor authentication where supported, monitor access, and remove the rule when the requirement ends.

UPnP, NAT-PMP, PCP, and manual rules

Applications and devices can request automatic mappings through UPnP IGD, NAT-PMP, or PCP. These mechanisms differ from a manually documented rule and can create temporary or unexpected exposure when local devices are compromised or poorly designed. Review the router's active mapping table before adding another entry. Disable unnecessary automatic mapping on networks where applications do not require it, or constrain it with platform controls. Port triggering is also different: it opens an inbound mapping in response to matching outbound traffic and may select a dynamic internal client. RouterNAT plans one explicit manual mapping only. It does not inspect automatic leases, trigger conditions, mapping lifetimes, or conflicts with existing entries.

IPv6 uses routing and firewall policy

A globally addressed IPv6 host usually does not need IPv4-style destination NAT. Inbound reachability instead depends on delegated prefixes, routing, the router's IPv6 firewall, the host firewall, service binding, DNS AAAA records, privacy addresses, and provider policy. Opening an IPv6 firewall rule is not the same as forwarding the router's public address to a private host. Do not copy an IPv4 NAT recipe into IPv6 controls. Verify the target's current stable addressing strategy and restrict the rule to the required protocol, port, destination, and sources. This planner validates private IPv4 mappings and deliberately does not generate IPv6 firewall policy.

A layer-by-layer failure diagnosis

Start at the application: confirm the process, bind address, internal port, and local response. Move outward to the target firewall, LAN reachability, target address stability, gateway and return path, router NAT match, router firewall, WAN address ownership, upstream NAT, ISP policy, and external test path. Packet capture on WAN and LAN can identify where a controlled attempt disappears. If traffic reaches WAN but not LAN, inspect NAT and firewall policy. If it reaches the host with no reply, inspect listener, host firewall, and return route. If it never reaches WAN, examine public addressing, upstream devices, provider filtering, and whether the tester used the correct endpoint.

Common mistakes and safe rollback

Common failures include forwarding to yesterday's DHCP lease, reversing internal and external fields, selecting the wrong protocol, testing while the service is stopped, using the same LAN as the tester, forgetting a second router, confusing a public website's IP with the router WAN, and leaving an old rule after a device changes. Another mistake is placing a host in a DMZ or disabling every firewall to make one service reachable. Export or document the router configuration, create one narrow reversible rule, validate the exact application, review logs, and remove temporary access immediately. After firmware, ISP, router, address, or application changes, retest the requirement rather than assuming the old mapping remains safe.

Privacy, authorization, and planner limitations

Inputs are processed in browser memory and are not submitted as a tool calculation. Do not enter credentials, hostnames, customer information, or confidential inventory. The page does not discover a public address, scan ports, contact the target, validate encryption, identify an application, or assess vulnerabilities. A status of ready means only that the entered topology and checkboxes describe a plausible controlled test with public WAN ownership. It cannot prove that the evidence is true or that the exposure is acceptable. Use current router and application documentation, organizational change control, least privilege, backups, monitoring, and an authenticated alternative whenever direct inbound publication is unnecessary.

Identify an unfamiliar service number in the common ports reference, then test only your own active TCP service with the open port checker. A TCP result does not validate UDP.

If the router WAN address does not match the public address, use the CGNAT checker and double NAT checker. The practical WAN-versus-public-IP guide explains the evidence sequence.

When a rule remains unreachable despite public WAN ownership, follow the layer-by-layer article Port Forwarding Still Closed With a Public IP. Review automatic mappings and exposure risk in the UPnP security guide.

Privacy and responsible use

This calculation runs locally in your browser. RouterNAT does not receive or save the values entered into this tool. Use the result only for lawful network administration and troubleshooting.

Comments

Leave a Comment

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