tweaks

Analysis of Command Prompt's Netstat command

Netstat is a Command Prompt utility that allows you to monitor your network and your active internet connections.

netstat 2

The Netstat command in the Windows Command Prompt is very basic and all advanced users should have a good understanding of its use. In addition to helping you monitor your internal network (intranet), it provides you with information about active connections to the external network (internet).

It provides a quick way to see all open ports, active connections, network services running on your system, which .exe files are talking to the internet, which IPs you have connected to, and other technical details that are very useful when it comes to your computer's security .

The netstat command exists in both Windows (via the Command Prompt) and Linux (via the terminal) . It does the same job, providing information about the network, although it is compiled with slightly different switches.

In this article, we will analyze netstat for the Windows 10 and 11 operating systems.

What does the Netstat command do?

The netstat command provides information only and does not perform any actions or tasks that change computer data. In other words, it is purely a monitoring order.

It is mainly used by IT specialists or network troubleshooters and when run, it displays a list of active TCP connections, ports that are open, ethernet connection statistics, addresses and ports used by your system and more .

Simply put, this command allows you to see which network connections are active and which applications are using them in the background at any given time.

The above makes it a capable tool to indicate to you any suspicious connections from unknown applications or services.

How Netstat is compiled

The netstat command is only accessible from the command line. Because some of its features require administrative rights, it is best to open a Command Prompt window with administrative rights. And since netstat is only monitoring, you don't have to worry about messing up your computer settings.

Step 1: (Only if you don't know how to open a Command Prompt window with administrator privileges). In Windows 10, right-click on the Taskbar and then click on “Taskbar (Administrator)”.

In Windows 11, navigate to All apps, find the “Terminal” app, right-click on it, and select “More > Run as administrator”.

A Command Prompt window with administrative privileges will open.

Step 2: At the command prompt, type netstat and press Enter. The command, once executed, will produce a list of active connections along with their status.

netstat 1

The netstat command is compiled with several switches (parameters) which you can see if you issue the command netstat /?. Let's look at some useful parameters you can use.

netstat 2

Useful parameters of Netstat

Parameters or switches are symbols placed at the end of the command that allow you to modify what the netstat command displays.

When you use a parameter in the form “netstat -parameter”, it helps you to view detailed information about the traffic and different connections in a local network.

Let's look at some useful netstat parameters to get more specific and filtered information from netstat:

netstat -a: Displays all active TCP and UDP connections and listening ports. Even failed connection attempts will be displayed.

netstat 3

netstat -b: The -b parameter displays the executable files (.EXE) involved in establishing each connection or listening port. It is mainly useful for those who are troubleshooting network problems on a Windows server.

netstat 4

netstat -e: If you are using an Ethernet connection instead of Wi-Fi, the -e parameter can show you detailed Ethernet statistics, such as connection speed, total bytes sent/received, and some other technical statistics.

netstat 5

netstat -o: Suppose you installed an application (from an untrusted website), in this case, you can check whether the application is doing something suspicious with the connection or not.

This is because the -o parameter displays the Process ID (PID) of each connection that you can map from Task Manager.

netstat 6

netstat -s: Displays statistics from a protocol, such as packets sent/received, errors, packets dropped, etc. It is useful if you want to understand bandwidth usage based on a protocol.

netstat 7

You can, if you want, insert more than one switch that will work together. . For example, netstat -es will show you Ethernet network details along with protocol-based bandwidth usage in a single view.

More generally:

Unlike utilities that you need to download separately, the netstat command is ready to use at the command line in all versions of Windows. This makes it the go-to tool for taking a snapshot of your network status, right from your computer.

Plus, from checking incoming and outgoing connections to detecting potential malicious activity, you can easily use it even if you're not a network expert.

0 reviews

iGuRu.gr

Join the discussion

Your email address will not be published. Required fields are marked *

Your message will not be published if:

  1. Contains abusive, defamatory, racist, offensive or inappropriate comments.
  2. It causes harm to minors.
  3. It harasses the privacy and individual and social rights of other users.
  4. It advertises products or services or websites.
  5. Contains personal information (address, telephone number, etc.).