What Is Port Forwarding and Why Do You Need It?
Your router acts as a gatekeeper between the internet and your home network. By default, it blocks all unsolicited inbound connections — a protection known as Network Address Translation (NAT). This is generally a good thing, but it prevents legitimate inbound connections to services you intentionally want to run: a game server, home media server, remote desktop access, or a self-hosted website.
Port forwarding creates a specific rule in your router that says: "when a connection arrives on port X, forward it to device Y on the local network." For example, if you are running a Minecraft server on your home PC, you would forward TCP port 25565 to your PC's local IP address so friends can connect.
Common use cases for port forwarding include:
- Game servers (Minecraft, Valheim, ARK, etc.)
- Remote desktop access (RDP on port 3389, VNC on port 5900)
- Home web or file servers (HTTP port 80, HTTPS port 443)
- Security camera NVR remote access
- BitTorrent clients for improved peer connectivity
- Self-hosted services like Plex, Nextcloud, or Home Assistant
Before setting up port forwarding, use our port checker to see which ports are currently open on your public IP, and our IP lookup tool to confirm your current public IP address.
Before You Start: Prerequisites
Port forwarding only works reliably if a few prerequisites are met. Skipping these steps is the most common reason forwarding setups fail.
1. Assign a static local IP to the target device. Your router's DHCP server assigns IPs dynamically, meaning your PC might have IP 192.168.1.105 today and 192.168.1.112 tomorrow after a reboot. Port forwarding rules are tied to a specific IP, so if it changes, your forwarding breaks. Fix this with a DHCP reservation in your router's settings — bind the device's MAC address to a permanent IP.
2. Know your public IP address. Port forwarding routes traffic from your public IP to your local device. You need to know this address to test the forwarding and to give it to others. Visit our IP address tool to find it. Note that most residential ISPs assign dynamic public IPs that change occasionally — see the section on dynamic DNS below.
3. Check for double NAT. If your ISP provides a modem-router combo (gateway) and you have added your own router behind it, you have double NAT — two layers of NAT that both need forwarding rules. Simplify this by putting the ISP gateway in bridge mode or DMZ mode, passing the public IP directly to your router.
4. Confirm the service is actually running and listening. Port forwarding cannot work if the target application is not running and listening on the port. Confirm the service is active on your device before troubleshooting forwarding.
Step-by-Step: Creating the Port Forward Rule
The exact steps vary by router model, but the process is conceptually the same across all routers.
- Log into your router's admin panel — typically at 192.168.1.1 or 192.168.0.1 in your browser. Use your admin credentials.
- Find the port forwarding section — it may be under "Advanced," "NAT," "Virtual Server," or "Port Forwarding" depending on the router brand.
- Create a new rule with the following fields:
- Service name / description: a label for the rule (e.g., "Minecraft Server")
- Protocol: TCP, UDP, or TCP/UDP — check the documentation for the service you are forwarding
- External port (WAN port): the port number that incoming connections will arrive on
- Internal IP address: the local IP of the device that should receive the traffic (the static IP you assigned)
- Internal port (LAN port): usually the same as the external port, but can differ if you want to use a non-standard external port
- Save/apply the rule and allow the router to restart if prompted.
- Test the forwarding using our port checker — enter your public IP and the port you forwarded to verify it shows as open.
For common services, here are the standard ports: HTTP (80), HTTPS (443), SSH (22), RDP (3389), Minecraft (25565 TCP), Plex (32400 TCP), Synology DSM (5000/5001).
Check If Your Port Is Open
Use our free port checker to instantly verify your port forwarding is working
Hide My IP NowDynamic DNS: Handling Changing Public IPs
Most residential internet connections have a dynamic public IP address — it changes occasionally, sometimes weekly. This is a problem for port forwarding because anything you share with friends (like your game server address) will stop working when your IP changes.
Dynamic DNS (DDNS) solves this by giving you a consistent hostname (like myhome.ddns.net) that automatically updates to point to your current public IP whenever it changes. Services like No-IP, DuckDNS, and Dynu offer free DDNS hostnames.
Setup process:
- Create a free account with a DDNS provider and register a hostname
- In your router's settings, find the DDNS section (most modern routers have built-in DDNS client support)
- Enter your DDNS provider credentials and hostname
- The router will automatically update the DDNS record whenever your IP changes
Alternatively, if your router does not support DDNS, install the DDNS client software on a PC that is always on. You can verify your current IP anytime with our IP lookup tool and compare it to what your DDNS hostname resolves to.
Security Considerations for Open Ports
Every open port is a potential attack surface. Attackers continuously scan the entire internet for open ports, probing for known vulnerabilities in the services running behind them. This does not mean you should never forward ports, but it does mean being deliberate and security-conscious about it.
Only forward ports you actively need. Close rules for services you no longer use. Review your port forwarding rules quarterly and delete any that are no longer necessary.
Avoid exposing high-risk services directly. Services like Remote Desktop Protocol (RDP) on port 3389 and SSH on port 22 are heavily scanned and brute-forced. If you need remote access, strongly consider a VPN instead (see our router VPN guide) — this eliminates the need to expose these ports at all.
Use non-standard external ports. You can map an unusual external port to the standard internal port. For example, forward external port 55022 to internal port 22 (SSH). This reduces automated scanning noise significantly, though it is not a substitute for strong authentication.
Enable application-level authentication. Whatever service you are exposing, ensure it requires strong credentials. Enable two-factor authentication where supported. Keep the application updated to patch security vulnerabilities.
Monitor for abuse. Check your router logs periodically for repeated connection attempts on open ports — a sign of brute-force attacks. Use the port checker regularly to confirm only intentionally forwarded ports are open.

Frequently Asked Questions
Why is my port forward not working?
The most common causes are: (1) the device's local IP changed — use a DHCP reservation to fix this; (2) double NAT — you have two routers and only forwarded on one; (3) the target service is not running; (4) your ISP blocks the port — some ISPs block ports 80 and 25 on residential connections; (5) a local firewall (Windows Firewall, iptables) on the target device is blocking the connection.
Is port forwarding safe?
Port forwarding is safe when done deliberately for specific services with proper security. Exposing well-secured services with strong authentication is generally fine. Avoid forwarding ports for services with known vulnerabilities, and never expose RDP or SSH directly without additional protections. Use our <a href='/port-checker'>port checker</a> to verify only intended ports are open.
What is the difference between port forwarding and DMZ?
Port forwarding forwards specific ports to a specific device. DMZ (demilitarized zone) forwards ALL ports to a single device, effectively removing that device from the router's firewall protection. DMZ should only be used for trusted devices like a secondary router — never expose a regular PC or IoT device in the DMZ.
Do I need port forwarding if I use a VPN?
If your VPN provider offers static IP addresses or port forwarding features, you may be able to route traffic through the VPN instead of opening ports on your home router. However, for most home server use cases, port forwarding on your home router is simpler and more performant.
