How to Set Up Port Forwarding on a Router: Open Ports Easily (2024)

  • Categories
  • Computers and Electronics
  • Computer Networking
  • Networking Hardware
  • Router Networking Devices

Download Article

Easily set up port forwarding for your games, apps, and servers

Explore this Article

parts

1Setting Up Port Forwarding

2Accessing Your Router on Windows

3Accessing Your Router on Mac

Other Sections

Video

Tips and Warnings

Related Articles

References

Article Summary

Written byTravis Boylls

Last Updated: June 16, 2023Fact Checked

Download Article

Are you playing a game or using an app that requires certain ports to be open? If you are using apps like BitTorrent clients, or multiplayer servers for games, they may require you to set up port forwarding. You may also need to set up port forwarding if you are trying to connect a server, or are using your computer as a server. While making changes to your router might sound intimidating, it's actually quick and easy! This wikiHow article teaches you how to set up port forwarding on your router.

Things You Should Know

  • Most routers have a firewall that blocks unwanted traffic to your network.
  • Port forwarding creates a special path that allows devices and apps to connect to the internet through the firewall.
  • You can create special rules for port forwarding using your router's web interface.

Part 1

Part 1 of 3:

Setting Up Port Forwarding

Download Article

  1. 1

    Understand your router's interface. The user interface is going to be different for each router make and model. You may need to look around or check your user's manual/online documentation to find the Port Forwarding settings in your router's user interface. Use the default gateway address for your router to access your router's user interface on PC or Mac.

    • For example, if you wanted to find the port forwarding section on a Linksys router, you would search for linksys port forwarding and look for your router's model number from there.
    • Be prepared to think outside the box when looking for router page items; for example, if you don't see "Advanced" listed somewhere on your router's page, keep looking—don't just give up there.
  2. 2

    Log in to your router's user interface. To do so, you will need to find the default gateway address for your router and enter it in a web browser. Then you will need to log in to the router's user interface using the admin username and password. If you have not changed the username and password, you will need to use the default username and password, which will be listed in your router's user manual or online documentation.

    • If you are not sure how to find the default gateway address and access your router's user interface, see Accessing Your Router on Windows or Accessing Your Router on Mac.

    Advertisem*nt

  3. 3

    Find the Port Forwarding section. Although each router's page will be slightly different, common menu labels for the section of settings that contains Port Forwarding are "Port Forwarding", "Applications", "Gaming", "Virtual Servers", "Firewall", and "Protected Setup" The following are where you can find the port forwarding settings for different router brands:

    • Linksys — Click the Applications & Games (or Apps & Games) tab, and then click Single Port Forwarding to open a single port or Port Range Forwarding to open a range of multiple ports. .
    • Netgear — Click Advanced Setup and then click Port Forwarding/Port Triggering or Ports - Custom Services.
    • Belkin — Click Virtual Servers below the "Firewall" header in the menu to the left.
    • Asus— Click WAN in the menu to the left and then click Virtual Server/Port Forwarding.
  4. 4

    Find a port forwarding preset. Many routers will have a drop-down menu with pre-configured options for well-known applications. If you need to open ports for one of these applications, select it from the "Service Name" or "Application" (or similar) drop-down menu and then save your changes by clicking Save (or similar).

    • For example, Minecraft is a common program for which people forward ports, so you might find a Minecraft setting here.
  5. 5

    Create a custom entry. If the program you want to add is not listed, you will need to create a custom port forwarding entry. Each router will have a slightly different way of doing this, although the required information is the same for any router:

    • Name or Description — Enter a name for the service (e.g., "Minecraft"). This isn't usually required, but it will help you keep track of your various port forwarding rules.
    • Type or Service Type — This can be TCP, UDP, or both. If you aren't sure of which one to use, select Both or TCP/UDP.
    • Inbound or Start — The first port number goes here. You should research your selected port number to make sure it isn't already taken by a specific application.
    • Private or End — The second port number goes here. If you only want to open one port, enter the same port number here; if you wish to open a range of ports, type the number of the port at the end of the range into this text field (e.g., entering "3570" in the first field and "3580" in the second field would open ports 3570 through 3580).
  6. 6

    Enter your computer's private IP address. This goes in the "Private IP" or "Device IP" field. You can find your private IP address on PC or on Mac. If your computer has a dynamic IP address that changes ever so often, you may need to assign your computer a static IP address to keep it from changing.

    • Depending on your router, this text field may already be filled with your computer's IP address. If so, skip this step.
  7. 7

    Save your settings. Click the Save or Apply button. If prompted, you'll also need to allow your router to restart in order for the changes to take effect.

    • You may also have to check an "Enabled" or "On" box next to the forwarded port row.
  8. Advertisem*nt

Part 2

Part 2 of 3:

Accessing Your Router on Windows

Download Article

  1. 1

    Click the Windows Start menu

    . It's the button with the Windows logo in the taskbar at the bottom of the screen.

    • These steps will work in both Windows 10 and Windows 11.
  2. 2

    Type view network connections. This will display a list of search results in the Windows Start menu that match what you type.

  3. 3

    Click View network connections. It should be at the top of the list of search results. Clicking this will display your network connections in the Control Panel.

  4. 4

    Double-click your active internet connection. If you are using a wireless connection, it will probably be the connection labeled "Wi-Fi". If you are using a wired connection, it will probably be one of the connections labeled "Ethernet."

    • The icons that have a red "x" next to them are not active connections. Ignore these connections.
  5. 5

    Click Details. It's below the list of your connection information. This shows more details about your internet connection.

  6. 6

    Note the IP address next to "IPv4 Default Gateway." This is the IP address of your router. This is what you will use to access your router's user interface.

  7. 7

    Open your web browser. You can use Google Chrome, Microsoft Edge, Firefox, or any web browser of your choice.

  8. 8

    Enter the default gateway address in the address bar. Enter the default gateway address you noted in the Control Panel in the address bar at the top of your web browser. This will open the login page for your router's user interface.

    • For example, if the default gateway number is "192.168.1.1", you would type 192.168.1.1 into the address bar.
  9. 9

    Log in to your router. Enter the username and password for your router. If you have not changed this information, it should be set to the default username and password. Consult the user's manual or online documentation for information on what the default username and password is. The following is a list of usernames and passwords you can try for your router brand:[1]

    • D-Link — Username: admin Password: leave blank.
    • Netgear — Username: admin Password: password
    • Linksys — Username: admin Password: admin
    • Asus — Username: admin Password: admin
    • DrayTek — Username: admin Password: admin
    • ZyXel — Username: admin Password: 1234
    • TP-Link — Username: admin Password: admin
    • TRENDnet — Username: admin Password: admin
    • Belkin — Username: admin Password: leave blank.
  10. Advertisem*nt

Part 3

Part 3 of 3:

Accessing Your Router on Mac

Download Article

  1. 1

    Open the Apple menu

    . Click the Apple logo in the top-left corner of the screen. A drop-down menu will appear.

  2. 2

    Click System Preferences…. It's in the drop-down menu. Doing so opens the System Preferences window.

  3. 3

    Click Network. You'll find this globe-shaped icon in the System Preferences window. The Network menu will open.

  4. 4

    Click Advanced…. It's in the lower-right side of the window. This prompts a pop-up window to appear.

  5. 5

    Click the TCP/IP tab. This option is at the top of the pop-up window.

  6. 6

    Review the number next to the "Router" heading. The number to the right of "Router:" is your router's IP address, which is sometimes referred to as a default gateway.

  7. 7

    Open your web browser. You can use Safari, Google Chrome, Firefox, or any web browser of your choice.

  8. 8

    Enter the default gateway address in the address bar. Enter your router's IP address in the address bar at the top of your web browser. This will open the login page for your router's user interface.

    • For example, if the default gateway number is "192.168.1.1", you would type 192.168.1.1 into the address bar.
  9. 9

    Log in to your router. Enter the username and password for your router. If you have not changed this information, it should be set to the default username and password. Consult the user's manual for information on what the default username and password is. The following is a list of usernames and passwords you can try for your router brand:[2]

    • D-Link — Username: admin Password: leave blank.
    • Netgear — Username: admin Password: password
    • Linksys — Username: admin Password: admin
    • Asus — Username: admin Password: admin
    • DrayTek — Username: admin Password: admin
    • ZyXel — Username: admin Password: 1234
    • TP-Link — Username: admin Password: admin
    • TRENDnet — Username: admin Password: admin
    • Belkin — Username: admin Password: leave blank.
  10. Advertisem*nt

Community Q&A

Search

Add New Question

  • Question

    What is the purpose of port forwarding?

    How to Set Up Port Forwarding on a Router: Open Ports Easily (33)

    Community Answer

    If you have a game, like Minecraft, and will be hosting a server, port forwarding will allow you to show people the server when they contact your router.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 35Helpful 131

  • Question

    How do I find out what my Wi-Fi password is?

    Your Wi-Fi password should be on your router. If you changed it and forgot what it was, reset your router to factory settings to reset the password to the one on the outside of the router. Then, you can change it again if you want.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 14Helpful 41

  • Question

    Will this cost me anything?

    How to Set Up Port Forwarding on a Router: Open Ports Easily (35)

    Community Answer

    Port forwarding itself does not cost money. You are just allowing an application to access other servers/computers through an opened port.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 4Helpful 20

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisem*nt

      Video

      Tips

      • Disable any extra desktop firewalls if you have problems. The firewalls for Norton Internet Security and similar products can be especially problematic; your Windows or Mac Firewall should be used instead.

        Thanks

        Helpful0Not Helpful1

      • Make sure you type all numbers correctly. A wrong port will cause the program to not work properly, so double-check everything.

        Thanks

        Helpful0Not Helpful1

      • Some routers (such as D-Link's) have a "trigger port" feature that can allow some games to work without changing the IP address. This feature works by monitoring the game's outbound connections and automatically setting up the specific port forwarding rule to the game's IP address. The trigger port feature usually needs to be manually enabled in the router's user interface.

        Thanks

        Helpful0Not Helpful0

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Submit

      Thanks for submitting a tip for review!

      How to Set Up Port Forwarding on a Router: Open Ports Easily (36)

      Advertisem*nt

      Warnings

      • Do not open all ports on your router. This allows hackers access to your computer.

        Thanks

        Helpful3Not Helpful0

      • Always use anti-virus software, anti-spyware, anti-adware, and Firewall protection when modifying your router's settings.

        Thanks

        Helpful2Not Helpful0

      • If you find your router has a default password, be sure to set a new one. A default password is a security risk.

        Thanks

        Helpful1Not Helpful0

      Advertisem*nt

      You Might Also Like

      How toCreate a Web Host in Your HomeHow toOpen Your Port 80 Behind a FirewallHow to Unblock Command Prompt AnywhereHow to Check if a Port is Open: 5 Quick WaysHow toFind the MAC Address of Your ComputerHow toConnect Two Computers3 Ways to Change a Computer's Mac Address in WindowsHow toConnect One Router to Another to Expand a NetworkHow toGet a MAC Address from an IP RemotelyHow toCreate a Local Area Network (LAN)How toTrack a PersonHow to Join a Domain on a Windows Computer or Mac

      Advertisem*nt

      About This Article

      How to Set Up Port Forwarding on a Router: Open Ports Easily (50)

      Written by:

      Travis Boylls

      wikiHow Technology Writer

      This article was co-authored by wikiHow staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 10,245,742 times.

      How helpful is this?

      Co-authors: 76

      Updated: June 16, 2023

      Views:10,245,742

      Categories: Computer Networking | Router Networking Devices

      Article SummaryX

      1. Find the IP addresses of your router and computer.
      2. Go to the router’s IP address in a web browser.
      3. Log in to your router's user interface.
      4. Go to the Port Forwarding/Applications section.
      5. Create a new entry.
      6. Enter a name and select a service type.
      7. Enter the starting and ending ports.
      8. Enter your computer’s IP address.
      9. Save your changes.

      Did this summary help you?

      In other languages

      French

      Spanish

      German

      Portuguese

      Dutch

      Chinese

      Russian

      Indonesian

      Arabic

      Hindi

      Thai

      Turkish

      Korean

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 10,245,742 times.

      Reader Success Stories

      • How to Set Up Port Forwarding on a Router: Open Ports Easily (51)

        Anonymous

        Apr 18, 2016

        "The basic explanation of port forwarding, the step-by-step instructions, and the explanation of the start and stop..." more

      More reader storiesHide reader stories

      Is this article up to date?

      Advertisem*nt

      How to Set Up Port Forwarding on a Router: Open Ports Easily (2024)
      Top Articles
      Latest Posts
      Article information

      Author: Rueben Jacobs

      Last Updated:

      Views: 5324

      Rating: 4.7 / 5 (57 voted)

      Reviews: 88% of readers found this page helpful

      Author information

      Name: Rueben Jacobs

      Birthday: 1999-03-14

      Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

      Phone: +6881806848632

      Job: Internal Education Planner

      Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

      Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.