4 C
Texas

How to solve network problems in Windows 10 with the Netstat command.

Hello! Sometimes problems occur that affect network connections. Sometimes these failures can be simply due to a bad configuration. Also, the failure may be caused by an out-of-date driver or system-wide problems. Consequently, the user can use various tools and methods to check that everything is in order. In today’s post, we will see how to solve network problems in Windows 10 with the Netstat command.

What is Netstat?

This is a tool to be used through the command line. It also allows to monitor the networks and also to be able to solve certain problems that may arise. Additionally, it offers detailed information of the connections of our device through the terminal. Its name comes from Network and Statistics. Therefore, it basically provides network statistics. In addition, it also provides data related to open ports and addresses. On the other hand, this tool is integrated in both Windows and GNU/Linux. Consequently, it can be used on both operating systems. As mentioned above, it is used via command and has no graphical interface.

Netstat utility.

Certainly this command provides data on network usage. However, Netstat can be used to solve some network problems.

Using Netstat to solve network problems in Windows 10

To use Nestat on Windows 10, you need to open a command prompt with administrator privileges. With this intention, type CMD in the search bar and select the option.

Running a CMD as an administrator.
Running a CMD as an administrator.
- Advertisement -

Once there, simply type in Netstat and press Enter.

Netstat command running on Windows 10.
Netstat command running on Windows 10.

All active connections of the device will be displayed immediately. The first column shows the protocol type (TCP or UDP). The second column shows the IP addresses and network interface ports for connections. It is also possible to view the IP addresses and ports for remote connections. Additionally, the command indicates whether the connection is active or closed. On the other hand, the process of charging the connections may take a few minutes depending on the quantity.

This command displays instantaneous information. That is, it is a data of a given moment. However, it is possible to program the command to be executed from time to time. For this please use the following syntax:

netstat -n S

Please remember to replace S with the number of seconds to update. For example, to update the command every 8 seconds please use the following:

netstat -n 8

Some Nestat commands.

With Netstat it is possible to solve some problems that may arise with the network connection. Indeed, there are different usage parameters. Let’s look at the most commonly used parameters to find specific network details. Please note, that all as commands begin with netstat. The only thing that varies is the parameter:

  • –a: allows you to know all the networks that are active or inactive. Consequently, it is possible to detect possible problems affecting a network.
  • –e: This command displays statistics on incoming and outgoing network packets on a network card.
  • –f: It displays the full domain name of remote addresses.
  • –n: This time the port numbers are displayed instead of the connection names.
  • -o: It displays the ID of each process at each connection.
  • –p: With this command we can filter connections according to the desired protocol. Example:
netstat –p TCP
  • -q: consult the linked listening and non-listening ports
  • -s: displays group statistics by protocol. This way we can classify networks according to the available protocols: TCP, UDP, ICMP, IPv4 or IPv6.
  • -r: This command displays the routing table of the current network.
  • -t: provides information about connections in the download state.
  • -x: In this case we can get information about all NetworkDirect connections.

In this way we have seen how to solve network problems in Windows 10 with the Netstat command. Now you have one more tool to control the connections in the system. See you later!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article