Internet, Networking, & Security > Home Networking > Routers & Firewalls > 237 237 people found this article helpful Master Port Forwarding: A Step-by-Step Guide to Opening Router Ports Optimize your network by learning how to forward ports for uninterrupted gaming and smoother app experiences By Tim Fisher Tim Fisher Senior Vice President & Group General Manager, Tech & Sustainability Emporia State University Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the SVP and General Manager of Lifewire. lifewire's editorial guidelines Updated on August 29, 2025 Reviewed by Ryan Perian Reviewed by Ryan Perian Western Governors University Ryan Perian is a certified IT specialist who holds numerous IT certifications and has 12+ years' experience working in the IT industry support and management positions. lifewire's editorial guidelines In This Article View All In This Article How Do You Set Up Port Forwarding? Give Device a Static IP Address Set Up Port Forwarding Extra: More Open Port Tips Frequently Asked Questions Close What To Know Port forwarding helps certain apps and games work by opening specific router ports. Assign a static IP to your device to avoid resetting port forwarding each time it changes. For some video games and programs to function correctly, you need to open specific ports on your router. While some ports are open by default, most remain closed and require manual configuration. If your online games, file server, or other networking applications aren't working, access your router to open the required ports. Maddy Price / Lifewire How Do You Set Up Port Forwarding? Traffic passes through your router via ports. Each port acts like a dedicated pipe for a specific kind of traffic. Opening a port on your router allows a particular data type to move through it. Port forwarding involves opening a port and directing those requests to a specific device on your network. It’s like connecting a pipe from the router to the device needing the port, ensuring a direct data flow. For instance, FTP servers use port 21 for incoming connections. If you have an FTP server but nobody outside your network can access it, open port 21 on your router and forward it to your server computer. This creates a dedicated path for file transfers from the server, through the router, to the FTP client. Port 21 Open on a Router. The same process applies to other scenarios, such as video games requiring internet communication with other players, torrent clients needing specific ports open for file uploads, and instant messaging apps that use designated ports to send and receive messages. Every networking application needs a port to function. If a program isn't working despite correct settings, open the necessary port on your router and forward requests to the appropriate device, such as a computer, printer, or game console. Port range forwarding is similar to port forwarding but covers an entire range of ports. For example, if a game uses ports 3478 to 3480, you can forward the entire range to the computer running the game, rather than configuring each port separately. To forward ports on a router, start with these two main steps. Since devices and routers vary, these steps are generic. For specific guidance, consult your device’s manual, such as your router's user guide. Give the Device a Static IP Address The device benefiting from port forwarding needs a static IP address, preventing the need to update port forwarding settings whenever its IP address changes. If your computer runs torrent software, assign it a static IP address. Similarly, a gaming console using specific port ranges also requires a static IP. You can set a static IP address from both the router and the computer, but it's easier to configure directly on your computer. Use Your Computer to Set Up a Static IP Address To configure a Windows computer with a static IP address, first determine its current IP address. Open Command Prompt on the computer. Type this command, then select Enter: ipconfig /all Record the following: IPv4 Address, Subnet Mask, Default Gateway, and DNS Servers. If multiple IPv4 Address entries appear, find the one under headings like Ethernet adapter Local Area Connection, Ethernet adapter Ethernet, or Ethernet LAN adapter Wi-Fi. Ignore entries related to Bluetooth, VMware, VirtualBox, and other non-default settings. Now, you can use that information to set up the static IP address. Open the Run dialog box with the WIN+R keyboard shortcut, enter ncpa.cpl, and select OK to open Network Connections. Right-click or tap-and-hold the connection that has the same name as the one you identified in Command Prompt. For example, Ethernet0. Select Properties from the menu. Choose Internet Protocol Version 4 (TCP/IPv4) from the list, then select Properties. Select Use the following IP address. Input the details noted from Command Prompt: IP address, subnet mask, default gateway, and DNS servers. Choose OK when you're done. If you have several devices on your network that get IP addresses from DHCP, don't reserve the same IP address you found in Command Prompt. For example, if DHCP is set up to serve addresses from a pool between 192.168.1.2 and 192.168.1.20, configure the IP address to use a static IP address that falls outside that range to avoid address conflicts. For example, use 192.168.1.21 or above. If you're not sure what this means, add 10 or 20 to the last digit in your IP address and use that as the static IP in Windows. You can also set up a Mac to use a static IP address, as well as Ubuntu and other Linux distributions. Use Your Router to Set Up a Static IP Address Alternatively, use your router to set up a static IP address, especially for non-computer devices like a gaming console or printer needing a consistent address. Access the router as admin. Find the Client List, DHCP Pool, DHCP Reservation, or a similar section. This lists the devices connected to the router, displaying their IP addresses and names. Find an option to reserve an IP address for a specific device, ensuring the router consistently assigns it. You may need to select the IP address from a list or click Add or Reserve. The above steps are generic since static IP address assignment is different for each router, printer, and gaming device. Instructions differ if you need to reserve IP addresses for NETGEAR routers, edit DHCP settings on Google devices, or configure DHCP reservation on Linksys routers. To make your public IP address static for external network access, you can pay for a static IP. Alternatively, setting up a dynamic DNS service is a helpful workaround. Set Up Port Forwarding With the device's IP address configured not to change, access your router to set up the port forwarding settings. Log in to the router as admin. You need to know the router's IP address, username, and password. Find the port forwarding settings. Names vary by router—look for Port Forwarding, Port Triggering, Applications & Gaming, or Port Range Forwarding. These options might be located under categories like Network, Wireless, or Advanced. Enter the port number or range you want to forward. For a single port, input the same number in both the Internal and External boxes. For port ranges, fill in the Start and End boxes. Most games and programs specify the required ports. If unsure, visit PortForward.com for a list of common ports. Choose a protocol, either TCP or UDP ports. Choose both, if needed. This information should be available from the program or game that explains the port number. Type the static IP address you chose. If asked, name the port trigger anything that makes sense to you. If it's for an FTP program, call it FTP. Call it Medal of Honor if you need the port open for that game. Enable the port forwarding rule with an Enable or On option. Here's an example of what it looks like to forward ports on a Linksys WRT610N: Port Forwarding Settings (Linksys WRT610N). Some routers include a port forward setup wizard for easier configuration. The router may provide a list of devices with static IP addresses and guide you in selecting protocols and port numbers. More port forwarding instructions: D-Link port forwarding Belkin port forwarding Google Nest Wi-Fi or Google Wi-Fi port forwarding More on Open Ports If port forwarding doesn’t enable a program or game on your computer, check whether a firewall is blocking the port. The port must be open on both the router and computer for the application to function. Opening Port 21 in the Windows Firewall (Windows 10). To see if the Windows Firewall is blocking a port that you opened on the router, temporarily disable the firewall and then test the port again. If the port is closed on the firewall, edit some firewall settings to open it. Opening a port on your router allows traffic flow in and out. Use network scanning tools or websites to see open ports from the outside. Here are some reasons to check for open ports: To avoid getting into the router to check.To make sure the port opened correctly when a program or game isn't working.To make sure a port you closed is actually closed. NetworkApper's Open Port Check Tool. Several places offer a free open port checker. PortChecker.co and NetworkAppers have online port checkers that scan a network from the outside. Another option is to download Advanced Port Scanner or FreePortScanner to scan devices within your private network. You can only forward one instance of a port at a time. For instance, if you forward port 3389 (used for Remote Desktop) to a computer with the IP address 192.168.1.115, the router cannot forward port 3389 to another address like 192.168.1.120. In cases like this, the only solution, if possible, is to change the port the program uses. This may be possible from the software settings or through a registry hack. In the RDP example, if you edit the Windows Registry on the 192.168.1.120 computer to force Remote Desktop to use a different port like 3390, you could set up a new port forward for that port and use Remote Desktop on two computers within the same network. FAQ How do I port forward Minecraft? Log in to your router and go to the port forwarding section. Enter your computer or gaming console's IP address and Minecraft's TCP and UDP ports. On a PC, Minecraft uses 25565 (TCP) and 19132-19133, 25565 (UDP). How do I set up port forwarding to an Xbox One? Go to Settings > Network > Advanced Settings and note your console's IP address. Log in to your router and enter the console's IP address. On your console, go to Settings > Network > Test Network Connection and follow the connection prompts. Go to your router's port forwarding tools and open 88, 500, 3544, 4500 (for UDP), and 3074 (TCP). Go back to Settings > Network and select Test NAT type. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit