3 ways to open ports

3 ways to open ports
3 ways to open ports

To communicate with the outside, a computer (or a router) needs ports, but to avoid serious problems they are installed on a firewall. By default, most ports in a firewall are closed to prevent intrusion. Opening a new port is sometimes handy in order to find a lost connection, whether it is between a router and a device or a program and a device. Remember that opening a firewall is not without danger.


Method 1 of 3: Open the ports on a router firewall

Open Ports Step 1

Step 1. Find the IP address of your router

It is absolutely necessary for you to access your router's configuration page.

  • Windows: open the menu To start up, click on Settings (gear), then on Network and Internet. Then click on View your network properties and retrieve the address listed next to Default Gateway.
  • Mac: open the menu Apple, click on System Preferences, then on Network. Then click on Advanced, then on TCP / IP and write down the number to the right of Router.
Open Ports Step 2

Step 2. Go to your router's configuration page

Open an Internet browser, then type your router's IP address in the address bar.

Open Ports Step 3

Step 3. Enter the username and password

If your router is already protected, enter the username and password. If not, check the router's user manual (booklet or on the Internet) for the router and find the default username and password.

If you have lost your login information, reset your router

Open Ports Step 4

Step 4. Find the Port Forwarding topic

Each router has its own configuration page, although they look the same. Locate the different headings with variable names:

  • Port forwarding,
  • Applications,
  • Games,
  • Virtual servers,
  • Firewall,
  • Protection protocol,
  • if you want to see more parameters, go to the section advanced settings.
Open Ports Step 5

Step 5. Open the chosen port

The procedure varies from router to router, although the information requested is exactly the same.

  • Service name Where Description: Enter the name of the application or a descriptive name.
  • Type Where Protocol: the choice is between TCP, UDP or both. If you don't know, click TCP / UDP.
  • Incoming traffic Where Start Port: type the port number there. For a range of ports, type the number of the smallest port.
  • Private Where End port: enter the port number here again. For a range of ports, type the number of the largest port.
Open Ports Step 6

Step 6. Enter the private IP address of your computer

Type it in the field titled IP adress. To find the one for your computer, read this article if you have a PC or this one if you have a Mac.

Open Ports Step 7

Step 7. Save your settings

Click on Save Where To apply. Restart the router for the changes to take effect.

  • On the line for port forwarding, you must, if this is not done by default, check the box Enabled.

Method 2 of 3: Open Windows Firewall Ports

Open Ports Step 8

Step 1. Open the Start menu (



Click on the Windows logo in the lower left corner of the screen.

Open Ports Step 9

Step 2. In this menu, type Windows Firewall Advanced Security

You will then see the link to the firewall settings program.

Open Ports Step 10

Step 3. Click Windows Firewall with Advanced Security

The button is usually at the top of the menu window To start up.

Become an iOS Developer Step 13

Step 4. Enter the administrator password

Indeed, to be able to open a port, you must have all the authorizations, the security of your computer is at stake.

Open Ports Step 11

Step 5. Click Traffic Rules

The option is located in the left frame of the window and at the top.

Open Ports Step 12

Step 6. Click New Rule

This option is, on the other hand, in the right frame of the window.

Open Ports Step 13

Step 7. Check the Port option, then click Next

Thus, you can choose, by entering their numbers, the ports you want to open.

Open Ports Step 14

Step 8. Select TCP or UDP

Check the box TCP Where UDP. Unlike a router, here you will have to choose between TCP and UDP.

For details on choosing the protocol, read your program documentation

Open Ports Step 15

Step 9. Enter a range of ports

Click on the button Specific local ports and in the right field, type the desired port. If you open multiple ports, separate them with commas. If this is an entire range of ports, type the number of the first port, a hyphen, and then the number of the last port.

Thus, to open port 8830, you will type 8830, to open the two ports 8830 and 8824, you will enter 8830, 8824 and to open all the ports from 8830 to 8835, you must enter 8830-8835

Open Ports Step 16

Step 10. Click Next

The button is at the bottom of the window.

Open Ports Step 17

Step 11. Make sure the Allow Connection button is enabled

If it is not enabled, click it, then click Next.

Open Ports Step 18

Step 12. Make sure all three boxes on the Profile page are checked

These three boxes are called Domain, Private and Public.

Open Ports Step 19

Step 13. Click Next

The button is at the bottom of the window.

Open Ports Step 20

Step 14. Give your rule a name

Finally click on Done. Your settings will be saved and the ports opened.

Method 3 of 3: Authorize apps in Mac OS X

Open Ports Step 21

Step 1. Click on the Apple menu (



It's in the menu bar at the top and far left.

The firewall on a Mac is turned off by default. So that's why, if you haven't activated your firewall, you don't have to do anything special

Open Ports Step 22

Step 2. Click System Preferences

This is the second option in the drop-down menu.

Open Ports Step 23

Step 3. Click Security & Privacy

This house icon is on the first line.

Open Ports Step 24

Step 4. Click the Firewall tab

It is in the third position on the row of tabs.

Open Ports Step 25

Step 5. Unblock access to the firewall menu

Click on the padlock at the bottom left, then enter the administrator password, then click on Unlock.

Open Ports Step 27

Step 6. Click Firewall Options

The button is on the right of the page.

Open Ports Step 28

Step 7. Click +

The sign is on the left under the frame in the middle of the page.

Open Ports Step 29

Step 8. Select the application that will pass through the firewall

Just click on an app.

Open Ports Step 30

Step 9. Click Add

The button is at the bottom of the window. In doing so, the application will add to the list of exceptions not blocked by the firewall.

Open Ports Step 31

Step 10. Check the permission to the right of the app name

There must be a green dot and it is written Allow incoming connections. If you don't see anything there, hold down the Control key, click the name of the app, and then click Allow incoming connections.

Open Ports Step 32

Step 11. Click OK

Your settings will then be saved and your application will be able to avoid the firewall.

Popular by topic