How to open a network port. How to open ports: step-by-step instructions

For some software products to function correctly, certain ports must be opened. Let's establish how this can be done for Windows 7.

Before opening the port, you need to have an idea of ​​why you are performing this procedure and whether it needs to be done at all. After all, this can serve as a source of vulnerability for the computer, especially if the user gives access to unreliable applications. At the same time, some useful software products require specific ports to be opened for optimal operation. For example, for the game Minecraft it is port 25565, and for Skype it is 80 and 433.

This task can be solved either using the built-in Windows tools (Firewall and Command Line settings), or using separate third party programs(for example, Skype, uTorrent, Simple Port Forwarding).

But you should remember that if you do not use direct connection to the Internet, and the connection is via a router, then this procedure will only bring results if you open it not only in Windows, but also in the router settings. But we will not consider this option, since, firstly, the router is indirectly related to the operating system itself, and secondly, the settings of certain brands of routers differ significantly, so there is no point in describing a specific model.

Now let's look at specific opening methods in more detail.

Method 1: uTorrent

Let's start looking at ways to solve this problem in Windows 7 with an overview of actions in third-party programs, in particular in the uTorrent application. It must be said right away that this method is only suitable for those users who have a static IP.

  1. Open uTorrent. Click on the menu "Settings". Move by position in the list "Program settings". You can also use a combination of buttons Ctrl+P.
  2. The settings window opens. Move to section "Compound" using the side menu.
  3. In the window that opens, we will be interested in the parameter block "Port Settings". To the region "Incoming connection port" enter the number of the port you need to open. Then click "Apply" And "OK".
  4. After this action, the specified socket (port bound to a specific IP address) must be open. To check this, click on the uTorrent menu "Settings", and then go to the item "Setup Assistant". You can also use a combination Ctrl+G.
  5. The Setup Assistant window opens. Check off the item "Speed ​​Test" can be removed immediately, since this block is not needed for the task at hand, and checking it will only take time. We are interested in the block "Net". There must be a check mark next to its name. In field "Port" should be the number that we opened earlier through the uTorrent settings. It is pulled into the field automatically. But if for some reason a different number is displayed, then you should change it to the desired option. Next click "Test".
  6. The procedure is running to check whether the socket is open.
  7. After the verification procedure is completed, a message will be displayed in the uTorrent window. If the task is completed successfully, the message will be as follows: "Results: the port is open". If the task cannot be completed, as in the image below, the message will be as follows: . Most likely, the reason for the failure may be that the provider provides you with a dynamic IP rather than a static one. In this case, you will not be able to open the socket via uTorrent. How to do this for dynamic IP addresses in other ways will be discussed below.

Method 2: Skype

The next way to solve this problem involves using the Skype communication program. This option is also suitable only for those users to whom the provider has allocated a static IP.


Method 3: "Windows Firewall"

This method involves performing manipulations through the Windows Firewall, that is, without using third party applications, but only with the help of the resources itself operating system. This option is suitable for both users using a static IP address and those using a dynamic IP.

  1. To launch Windows Firewall, click "Start", then click on "Control Panel".
  2. Next click "System and safety".
  3. After that press « Windows Firewall» .

    There is also a faster option to go to required section, but requiring memorization of a specific command. It is carried out using a tool "Run". Call it by clicking Win+R. Enter:

    Click "OK".

  4. Any of these actions will launch the Firewall configuration window. In the side menu, click "Extra options".
  5. Now use the side menu to navigate to the section "Rules for incoming connections".
  6. The Inbound Rules Management Tool opens. To open a specific socket, we have to form a new rule. In the side menu, click "Create a rule...".
  7. The rule generation tool is launched. First of all, you need to choose its type. In the block “What type of rule do you want to create?” set the radio button to position "For the port" and click "Further".
  8. Then in the block "Specify the protocol" leave the radio button in position "TCP Protocol". In the block "Specify ports" put the radio button in position . In the field to the right of this parameter, enter the number of the specific port that you are going to activate. Click "Further".
  9. Now you need to specify an action. Set the switch to position "Allow connection". Click "Further".
  10. Then you should specify the type of profiles:
    • Private;
    • Domain;
    • Public.

    There should be a check mark next to each of these items. Click "Further".

  11. In the next window in the field "Name" you need to specify an arbitrary name for the rule being created. In field "Description" You can optionally leave a comment on the rule, but this is not required. After this you can click "Ready".
  12. So, a rule for the TCP protocol has been created. But to ensure correct operation, you also need to create a similar entry for UDP for the same socket. To do this, press again "Create a rule...".
  13. In the window that opens, again set the radio button to the position "For the port". Click "Further".
  14. Now set the radio button to position "UDP Protocol". Below, leaving the radio button in position "Specific local ports", we set the same number as in the situation described above. Click "Further".
  15. In the new window we leave the existing configuration, that is, the switch should be in the position "Allow connection". Click "Further".
  16. In the next window, again make sure that the checkboxes next to each profile are checked, and click "Further".
  17. At the final step in the field "Name" enter the name of the rule. It must be different from the name that was assigned to the previous rule. Now you should press "Ready".
  18. We have created two rules that will ensure that the selected socket is activated.

Method 4: "Command Line"

You can complete the task using the Command Line. It must be activated with administrative rights.


Method 5: Port Forwarding

Let’s complete this lesson by describing a method using an application that is specifically designed to perform this task - Simple Port Forwarding. Using this program is the only option of all those described, by performing which you can open a socket not only in the OS, but also in the router settings, and the user does not even have to go into its settings window. Thus, this method is universal for most router models.

  1. After launching Simple Port Forwarding, first of all, for greater convenience of working in this program, you need to change the interface language from English, which is installed by default, to Russian. To do this, click on the field in the lower left corner of the window in which the name of the current program language is indicated. In our case it is "English I English".
  2. A large list of different languages ​​opens. Select in it "Russian I Russian".
  3. After this, the application interface will be Russified.
  4. In field "Router IP address" Your router's IP should automatically appear.

    If this does not happen, then you will have to drive it in manually. In the vast majority of cases this will be the following address:

    But it’s still better to make sure it’s correct through "Command line". This time it is not necessary to run this tool with administrative rights, and therefore we will launch it more in a fast way than we considered earlier. Dial Win+R. In the field that opens "Run" enter:

    Click "OK".

    Into the opened window "Command line" enter the expression:

    Click Enter.

    This will display basic connection information. We need the value opposite the parameter "Main gate". This is what should be entered in the field "Router IP address" in the Simple Port Forwarding application window. Window "Command line" We don’t close it yet, since the data displayed in it may be useful to us in the future.

  5. Now you need to find the router through the program interface. Click "Search".
  6. A list opens with the names of various models of more than 3,000 routers. In it you need to find the name of the model to which your computer is connected.

    If you don’t know the model name, then in most cases it can be seen on the router case. You can also find out its name through the browser interface. To do this, enter into the address bar of any web browser the IP address that we previously determined through "Command line". It is located near the parameter "Main gate". After it is entered into the address bar of the browser, click Enter. The router settings window will open. Depending on its brand, the model name can be viewed either in the window that opens or in the name of the tab.

    After this, find the name of the router in the list provided in the Simple Port Forwarding program and double-click on it.

  7. Then in the program fields "Login" And "Password" The account information standard for the specific router model will be displayed. If you previously changed them manually, you should enter your currently current login and password.
  8. Next, click on the button "Add Entry" ("Add a note") in the form of a sign «+» .
  9. In the window that opens for adding a new socket, click the button "Add special".
  10. Next, a window opens in which you need to specify the parameters of the socket to open. In field "Name" We write down any arbitrary name, not exceeding 10 characters in length, by which you will identify this entry. In area "Type" leave the parameter "TCP/UDP". This way we won't have to create a separate entry for each protocol. In area "Start port" And "Terminal port" Enter the number of the port you are going to open. You can even enter a whole range. In this case, all sockets of the specified number interval will be opened. In field "IP address" The data should be pulled up automatically. Therefore, do not change the existing value.

    But just in case, you can check it. It must correspond to the value that is displayed next to the parameter "IPv4 address" in the window "Command line".

    After all the specified settings have been made, click the button in the Simple Port Forwarding program interface "Add".

  11. Then, to return to the main program window, close the add port window.
  12. As you can see, the entry we created appeared in the program window. Select it and click "Run".
  13. After this, the socket opening procedure will be performed, after which the following message will be displayed at the end of the report: "Adding complete".
  14. So, the task has been completed. Now you can safely close Simple Port Forwarding and "Command line".

As you can see, there are many ways to open a port, both using built-in Windows tools and using third-party programs. But most of them will only open the socket in the operating system, and opening it in the router settings will have to be done separately. But there are still separate programs, for example Simple Port Forwarding, that will allow the user to cope with both of the tasks mentioned above simultaneously without manual manipulation of the router settings.

Recently I had to manually open ports TCP on Windows 8.1
Usually what is open by default in Windows is enough, but if you are experiencing problems, for example, connecting to the mail server, and the usual ways to solve such problems (clearing the cache, changing security settings, disabling firewall) do not help, you may need to open one or another port for network connections.

Wikipedia: The term firewall or its English equivalent firewall is also used to mean “firewall”.
TLS (English Transport Layer Security - transport layer security, like its predecessor SSL (English Secure Socket Layers - secure socket layer) - cryptographic protocols that provide secure data transfer between nodes on the Internet.
SMTP uses TCP port 25 by default. SSL protocol to send mail, uses port 465 by default.
POP3 uses TCP port 110 by default. TLS protocol for receiving mail uses port 995 by default.

In order to open TCP or UDP ports, you must:

1. Click the button and go to Applications Windows 8.1.
2. Find and click the icon Control Panel.
3. Select Windows Firewall.
4. In the left panel Control Panel\All Control Panel Items\Windows Firewall click on Extra options.
5. A window will open.
6. In case of request from UAC Enter the administrator password to confirm the action.

Wikipedia: Control accounts users(English: User Account Control, UAC) - component of operating systems Microsoft Windows, first appeared in Windows Vista. This component prompts you to confirm actions that require administrator rights to help protect against unauthorized use of your computer. The computer administrator can disable User Account Control in the Control Panel.

7. Click on Rules for incoming connections in the left pane of the window Windows Firewall mode increased security incoming connections, for example, for port 995 of the mail server, or on Rules for outgoing connections, if you need to create a rule for outgoing connections, for example, for port 465 of the mail server.

8. Click on Create a rule... in the right panel.
9. After this a window will open Wizard for creating a rule for a new outgoing connection. Select a button For port and press the button Further:

10. Choose TCP protocol And Specific Remote Ports, enter, for example, the required port number 465 and press the button Further:

11. Choose Allow connection and press Further:

12. Select the profile to which the rule applies:

13. We indicate Name And Description this rule and press the button Ready.

All! The port is open to network connection. If you need to open multiple ports, you must repeat the above steps for each port separately.

The modern Internet is not only a collection of web pages linked by hyperlinks. The concept of “Internet” includes any digital information, sometimes used completely different devices. Torrent clients, file-sharing networks, software components automatic update, numerous instant messengers and “smart” gadgets - they all use Internet traffic, and it can be transmitted through the same server. In theory, when one server serves tens of thousands of different services, real confusion should arise, but this does not happen, because each client has its own IP address on the network. But this may not be enough.

What are ports in Windows 7/10 and why are they needed?

To distinguish between requests and optimize the connection, protocols and ports are also used. The latter will be discussed today. So what are ports, why are they needed, how can you find out which ports are open on your computer and why should they be open or, on the contrary, closed?

A port is a virtual unit, channel, connection number with a remote client or server, allocated to a particular program. Unclear? Let's try to explain more clearly. Imagine a huge building with 65,535 doors. These doors are not simple, leading to internal rooms, but magical, leading to other similar buildings. The house with many doors is your computer, and the doors are ports through which programs establish connections with other computers.

When an application wants to access the network, it reserves a specific port number for itself, so there is no confusion when exchanging numerous data. When the program exits, the port is released, although some ports have their own exceptions. For example, ports 80 and 443 must be open constantly, otherwise some programs will not be able to connect to the Internet, unless their algorithms provide the possibility of an alternative connection. It is advisable to keep other ports locked to avoid network attacks and exploitation by malware.

How to check if a port is open

The concept of a “port” is more or less understood, now let’s find out how to check whether a port is open on a computer or not. There are several ways to check the availability or unavailability of a port(s). The simplest and most obvious is to use online services PortScan.ru or 2ip.ru. To determine whether a port is explicitly open or not, you need to enter its number in a special field and click the “Check” button.

PortScan.ru and similar services also often provide scanner services for open ports on a computer.

You can also view open ports in Windows 7/10 using the usual command line or console PowerShell running with administrator rights. To do this, run the following command in the console:

netstat -aon | more

In this case you will receive a list active connections. The “Local Address” column will indicate the IP and the actual port number that is currently open. Please also pay attention to the connection status. LISTENING means the port is just listening (waiting for a connection), ESTABLISHED– there is active data exchange between network nodes, CLOSE_WAIT– waits for the connection to be closed, TIME_WAIT indicates that the response time has exceeded.

Alternatively, you can use free utility CurrPorts from the famous developer NirSoft.

The advantage of this utility is that it visually shows not only the local and remote ports used, but also the processes and services associated with them, as well as the paths to their executable files, their version, description and much more. useful information. Additionally, CurrPorts can be used to close selected connections and terminate processes on selected ports.

How to open ports on a computer using Windows

We already know how to determine open ports, now let's see how to open ports on Windows 7/10. As a rule, the standard Windows firewall is used for these purposes. Let's assume that we have closed the used mail clients under the SMTP protocol port 25, and we need to open it. Launch the standard firewall and click on the “Advanced settings” link on the left.

In the new window select Rules for incoming connections – Create a rule.

The rule type must be selected “For port”, the protocol is left as default, that is, TCP, and in the “Specified local ports” field we enter the number of the port we need.

If you need to open several ports, add them separated by commas. Click “Next” and specify the action, in this case “Allow connection”.

And finally, we move on to the last stage of configuration - assigning a name to the rule. The name can be arbitrary, the main thing is that it reflects the essence of the rule.

Why should ports 80 and 443 be open?

Among the many ports, there are those that are reserved by popular programs by default. For example, ports 80 and 443 are used primarily by browsers (80 for regular and 443 for secure encrypted connections). If these ports are closed, certain problems may arise when connecting to gaming and cloud services, conducting transactions and the like. However, you should not rush to open ports 80 and 443 if they were closed as a result of the scan. If there are no connection problems, it is better to leave everything as it is.

How to find out which ports a specific program is using

You already know how to open a port on a computer with Windows 7/10, now let's see how to determine which program or process is using a particular port. To search for open ports on a PC, we have already suggested using the CurrPorts utility. With its help, you can quickly determine the port used by any network program running on the computer.

Let's say we want to find out which port the program for hiding the IP address occupies FreeHideIP. We launch the CurrPorts utility, find the FreeHideIP process in the first column and look in the “Local Ports” column for the number of the port it uses.

You can determine the port used by the program without any third-party tools, using Windows itself. Let's resort to the help of an already familiar utility netstat. Open a command line or PowerShell console as an administrator and run the following command;

netstat -aonb | more

This time we added the parameter to the list of enabled keys b, responsible for displaying the process name. For example, in the attached screenshot you can see that one of the processes Chrome browser with ID 5732 is currently using local port 61233. In principle, you can not use the b key, but then you will need Task Manager.

We find the application process in the Manager, look at its identifier and compare it with the data in the PID column on the command line. But why make extra movements if there is a shorter way?

In addition to opening a port on the router, the user needs to check whether it is open on the computer. Opening the port is necessary for the operation of certain applications or server installation. Often the port is blocked by the security system of your operating system. In our article we will describe ways to solve this problem.

First, let's check which ports are open on your computer. Let's use the command line. To call the line, press the Win+R key combination and write the command “cmd”.
In the command line window we write “netstat -a” and see a list of open ports on your PC. The LISTENING state means that a process has opened these ports and is waiting for connections. The ESTABLISHED state means that ports are open in a specific process or application.

If your computer is connected through a router, then you first need to open the ports on the router. How to do this is indicated in the article

In order to open TCP ports or UDP ports on your computer, you need to go to the firewall settings. Press the key combination Win+R. And enter the firewall.cpl command and click OK.
In the firewall settings, click on the “Advanced settings” link.

Let's go to the firewall settings section. On the left side of the menu, click on the item “Rules for incoming connections”

A list opens. In the “Action” window, create a rule for the port.

Select the protocol type. Check "Allow connection". Click the Next button.

In the “Name” column we write the name for the rule - for example, torrent client. Click the Finish button.

If all actions were performed correctly, the port with the created rule will be open.
You can also check whether a port is open or closed using various online services. For example,

Publications on the topic