Generate port forwarding configurations for your router brand. Enter the external port, internal IP and port, select your protocol, and get ready-to-use configurations for TP-Link, Netgear, Asus, and Linux iptables — plus command-line formats for advanced setups.

Port forwarding tells your router to send incoming traffic on a specific port to a particular device on your local network. By default, your router's NAT firewall blocks all unsolicited inbound connections. Port forwarding creates an exception for services you want to be accessible from the internet — like game servers, web servers, or remote access tools.
For a complete setup walkthrough, see our port forwarding guide. To learn the concepts behind it, read What Is Port Forwarding?
| Use Case | Ports | Protocol | Notes |
|---|---|---|---|
| Minecraft Server | 25565 | TCP | Java Edition default |
| Plex Remote Access | 32400 | TCP | For streaming outside your network |
| Xbox Open NAT | 3074 | TCP/UDP | Fixes matchmaking issues |
| PlayStation NAT | 3478-3480 | TCP/UDP | Plus 3074 UDP |
| Web Server | 80, 443 | TCP | HTTP and HTTPS |
| SSH Remote Access | 22 | TCP | Consider changing to non-standard port |
| WireGuard VPN | 51820 | UDP | Modern VPN protocol |
| Security Cameras | Varies | TCP | Use VPN instead when possible |
Use our Common Ports Reference to look up the correct ports for your specific service. Verify ports are open after configuration with our Port Checker.
To apply port forwarding rules, you need to log in to your router's admin panel. Most routers use one of these addresses:
If you're not sure of your router's IP, it's your default gateway. Learn more in our gateway guide. Make sure your device has a static IP (or DHCP reservation) so the forwarded port always reaches the right device.
Pro Tip: Always assign a static IP or DHCP reservation to the device receiving forwarded traffic. If your device's IP changes via DHCP, the port forwarding rule will point to the wrong device. Set up a DHCP reservation in your router's settings — it's easier than configuring a static IP on each device. Use our DHCP Lease Calculator to plan your address pool.
Every forwarded port is an opening in your firewall. Follow these security practices:
If your port forwarding isn't working after configuration, check these common issues:
| Problem | Likely Cause | Solution |
|---|---|---|
| Port shows as closed | ISP blocking port | Try non-standard port; contact ISP |
| Works locally, not remotely | Double NAT | Bridge modem or forward on both routers |
| Intermittent access | Dynamic IP on target device | Set DHCP reservation or static IP |
| Wrong protocol selected | TCP vs UDP mismatch | Check service requirements; use Both |
| Firewall blocking | Device firewall active | Add exception in OS firewall |
After configuring, verify with our Port Checker. If using port forwarding for gaming, check your NAT type has changed to Open.
Port forwarding itself is not dangerous, but it exposes a service to the internet. Ensure the exposed service is patched, uses strong authentication, and is actively monitored. For remote access, a VPN is generally more secure than forwarding individual ports.
Many games work without port forwarding thanks to UPnP. However, if you have Strict or Moderate NAT type, forwarding the game's ports can improve matchmaking and voice chat. Console gaming especially benefits from port forwarding.
Common causes: double NAT (two routers), ISP blocking the port, wrong protocol (TCP vs UDP), device firewall blocking traffic, or the target device's IP changed. Use our Port Checker to diagnose.
Port forwarding opens specific ports to a device. DMZ forwards ALL ports to a device, effectively removing it from NAT protection. DMZ is simpler but much less secure. Only use DMZ for dedicated servers or as a last resort.
No. A port can only be forwarded to one internal IP address. Use different external ports that map to the same internal port on different devices if needed (e.g., external 25565 to Device A, external 25566 to Device B).
UPnP allows devices to automatically create port forwarding rules. It's convenient but less secure since any device on your network can open ports. For gaming consoles, UPnP is usually fine. For servers, manual port forwarding gives you more control.
About Tommy N.
Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.
![]() |
![]() |
![]() |
![]() |
Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.
Once done, hit any button as below
![]() |
![]() |
![]() |
![]() |