How to Setup Port Forwarding on Your Router

Port forwarding allows external devices to access services hosted on your local network. This guide will walk you through setting up port forwarding on common router brands.

Security Notice: Port forwarding can create security vulnerabilities if not configured properly. Only forward ports for services you trust and understand.

What is Port Forwarding?

Port forwarding is a technique that allows remote computers to connect to a specific computer or service within a private network. It works by "forwarding" a communication request from one address and port number to another.

Common uses for port forwarding include:

  • Hosting game servers
  • Remote access to home computers
  • Setting up security cameras
  • Hosting web servers
  • Using peer-to-peer applications

Before You Begin

Before setting up port forwarding, you'll need:

  1. The IP address of the device you want to forward ports to
  2. The port numbers you want to forward
  3. Administrator access to your router
Tip: It's recommended to set a static IP address for devices that will receive forwarded ports, so their IP address doesn't change.

General Port Forwarding Steps

Step 1: Access Your Router's Admin Panel

  1. Open a web browser
  2. Enter your router's IP address in the address bar (typically 192.168.1.1 or 192.168.0.1)
  3. Enter your router's username and password when prompted

If you don't know your router's login credentials, check the router's manual or look for a sticker on the router itself.

Step 2: Find the Port Forwarding Section

The port forwarding section might be under different names depending on your router:

  • Port Forwarding
  • Virtual Server
  • Port Range Forwarding
  • Applications & Gaming
  • NAT/Gaming

Look for these sections in the router's advanced settings, firewall settings, or security settings.

Step 3: Add a New Port Forwarding Rule

Once you've found the port forwarding section, you'll need to add a new rule. Typically, you'll need to provide:

  • Service Name/Description: A name to identify this rule (e.g., "Web Server" or "Game Server")
  • Internal IP Address: The local IP address of the device you want to forward ports to
  • Internal Port: The port on your device that the service uses
  • External Port: The port that will be accessible from the internet (usually the same as the internal port)
  • Protocol: TCP, UDP, or Both (depends on the service you're setting up)

Step 4: Save Settings and Test

  1. Save the port forwarding rule
  2. Some routers may require a restart after changing these settings
  3. Test the connection by accessing your service from outside your network

To test your port forwarding setup, you can use online port checking tools or try to connect to your service using your public IP address.

Brand-Specific Instructions

  1. Log in to your TP-Link router (usually at 192.168.0.1 or 192.168.1.1)
  2. Go to Forwarding > Virtual Servers or Port Forwarding
  3. Click Add New
  4. Enter a name for the service
  5. Enter the IP address of your internal device
  6. Enter the external and internal ports
  7. Select the protocol (TCP, UDP, or both)
  8. Enable the rule and click Save

  1. Log in to your Netgear router (typically at routerlogin.net or 192.168.1.1)
  2. Go to Advanced > Advanced Setup > Port Forwarding / Port Triggering
  3. Select Port Forwarding
  4. Click Add Custom Service
  5. Enter a name for the service
  6. Enter the starting and ending external ports (same number for a single port)
  7. Enter the internal IP address of your device
  8. Enter the internal port (usually the same as the external port)
  9. Click Apply

  1. Log in to your Linksys router (usually at 192.168.1.1)
  2. Go to Security or Applications & Gaming
  3. Find Port Range Forwarding or Single Port Forwarding
  4. Enter a name for the application
  5. Enter the external and internal ports
  6. Enter the internal IP address of your device
  7. Select the protocol (TCP, UDP, or both)
  8. Check Enable and click Save Settings

  1. Log in to your Asus router (typically at 192.168.1.1)
  2. Go to WAN (in Advanced Settings)
  3. Select the Virtual Server / Port Forwarding tab
  4. Click Add Profile
  5. Enter a service name
  6. Enter the port range (same number for a single port)
  7. Enter the local IP address of your device
  8. Enter the local port (usually the same as the external port)
  9. Select the protocol
  10. Click OK or Apply

Testing Your Port Forwarding Setup

After setting up port forwarding, you should test if it's working correctly:

  1. Find your public IP address by visiting a site like whatismyipaddress.com
  2. Use an online port checking tool like YouGetSignal or PortChecker.co
  3. Enter your public IP address and the port you forwarded
  4. The tool will tell you if the port is open and accessible
Note: If the test fails, check that:
  • Your service is running on the internal device
  • The correct internal IP address was used
  • Your ISP isn't blocking the port (some ISPs block certain ports)
  • Your firewall isn't blocking the connection

Troubleshooting Port Forwarding

Common Port Forwarding Issues

  • Ports still closed after configuration: Check if your ISP blocks the ports you're trying to forward. Some ISPs block common ports like 25 (SMTP) or 80 (HTTP).
  • Device IP address changed: The device you forwarded ports to might have received a new IP address. Set up a static IP for the device.
  • Router firewall blocking: Your router's firewall settings might be blocking the incoming connections. Check firewall settings.
  • Double NAT: If you have multiple routers, you might be experiencing double NAT. You'll need to set up port forwarding on both routers or put one in bridge mode.
  • Incorrect protocol: Make sure you selected the correct protocol (TCP, UDP, or both) for your service.

Need More Help?

For more specific instructions for your router model, refer to your router's manual or the manufacturer's website.

Common Router Login IPs