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:
- The IP address of the device you want to forward ports to
- The port numbers you want to forward
- 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
- Open a web browser
- Enter your router's IP address in the address bar (typically 192.168.1.1 or
192.168.0.1)
- 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.
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.
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)
- Save the port forwarding rule
- Some routers may require a restart after changing these settings
- 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
- Log in to your TP-Link router (usually at 192.168.0.1 or
192.168.1.1)
- Go to Forwarding > Virtual Servers
or Port Forwarding
- Click Add New
- Enter a name for the service
- Enter the IP address of your internal device
- Enter the external and internal ports
- Select the protocol (TCP, UDP, or both)
- Enable the rule and click Save
- Log in to your Netgear router (typically at routerlogin.net or
192.168.1.1)
- Go to Advanced > Advanced Setup >
Port Forwarding / Port Triggering
- Select Port Forwarding
- Click Add Custom Service
- Enter a name for the service
- Enter the starting and ending external ports (same number for a
single port)
- Enter the internal IP address of your device
- Enter the internal port (usually the same as the external port)
- Click Apply
- Log in to your Linksys router (usually at 192.168.1.1)
- Go to Security or Applications &
Gaming
- Find Port Range Forwarding or Single Port
Forwarding
- Enter a name for the application
- Enter the external and internal ports
- Enter the internal IP address of your device
- Select the protocol (TCP, UDP, or both)
- Check Enable and click Save
Settings
- Log in to your Asus router (typically at 192.168.1.1)
- Go to WAN (in Advanced Settings)
- Select the Virtual Server / Port Forwarding tab
- Click Add Profile
- Enter a service name
- Enter the port range (same number for a single port)
- Enter the local IP address of your device
- Enter the local port (usually the same as the external port)
- Select the protocol
- Click OK or Apply
Testing Your Port Forwarding Setup
After setting up port forwarding, you should test if it's working correctly:
- Find your public IP address by visiting a site like whatismyipaddress.com
- Use an online port checking tool like YouGetSignal or PortChecker.co
- Enter your public IP address and the port you forwarded
- 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
- 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.