Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

Which programs access the Internet cmd.exe command!


Sometimes you just want to see what programs are accessing the internet, luckily you can do that from the classic command prompt with netstat!




1.) ... Show program connections via the command prompt!
2.) ... Redirecting the program connections to a file!


See also: ► See folder accesses in the network?

1.) Display connections of the programs via the command prompt!

1. Start the ► command prompt in administrative mode  Ctrl + Shift + Enter

2. Use the command netstat -abf ( other ► netstat parameter / arguments list ) 

3. To exit, simply use the shortcut Ctrl + C

(... see Image-1 Point 1 and 3) 

►►  Step by step solution in text form!

(Image-1) What programs access to the Internet command prompt!
What programs access to the Internet command prompt!

-
▲ Back to the top ▲

1b.) Step by step solution in text form!




To find out which programs are accessing the Internet, you can use the `netstat` command in the command prompt (`cmd.exe`). Here is a step-by-step guide on how to do it:

Step 1:

Open Command Prompt
- Press the Windows key, type "cmd" and press Enter. This will open the command prompt.
 
Step 2:

Type "netstat" command
- In the command prompt, type `netstat` command and press Enter.
 
Step 3:

Check the output
- After running the command, you will get a list of all network connections and the corresponding programs accessing them. You can see information such as local and remote IP addresses, ports and the status of connections.
 
Step 4:

Filter for "ESTABLISHED" connections (optional)
- If you only want to see the active connections, you can use the command `netstat -an | find "ESTABLISHED"`. This filters the output to show only the "Established" connections.
 
Please note that the `netstat` command will display all active network connections, regardless of whether they are accessing the Internet or not. Some connections may be local or access internal network services.
 
It is important to note that the output of `netstat` may vary depending on system configuration, and some programs may be able to hide their network activity or rely on encrypted connections that are not as easily identified.


 


`netstat -abf` is an extended form of the `netstat` command in the command prompt, which provides additional information about network activity, particularly about its associated processes (programs).


 Here is a step by step guide on how to use `netstat -abf`:

 
Step 1:

Open Command Prompt
- Open Command Prompt by pressing the Windows key, typing "cmd" and then pressing Enter.
 
Step 2:

Enter the command "netstat -abf"
- Type the command `netstat -abf` in the command prompt and press Enter.
 
Step 3:

Check the output
- After running the command, you will get a list of all network connections along with their associated processes (programs). You can see which programs are accessing the network and which ports they are using.
 
Step 4:

Interpret the output
- The output of `netstat -abf` will show you the locally and remotely connected IP addresses and ports, as well as the status of the connections. In addition, you can see the process names (programs) responsible for these connections.
 
Please note that you need administrative privileges to run `netstat -abf` as it requires additional permissions to access information about the running processes.
 
This method provides more detailed information than the standard `netstat` command and can help you identify exactly which programs are accessing the network.

 

-
▲ Back to the top ▲





2.) Redirecting the program connections to a file!

1. Start the command prompt or PowerShell in administrative mode

2. Command netstat -abf > D:\Activity.txt

3. To end the connection log output to the file, also use the Ctrl + C key

(... see Image-2 Point 1 to 4) 

All connection logs are saved in  D:\Aktivity.txt. You can save it anywhere you want to be able to evaluate the connection log at any time, via the ► Redirect command prompt feature!

►►  Step by step solution in text form!
(Image-2) Access to the Internet protocol in a file!
Access to the Internet protocol in a file!


-
▲ Back to the top ▲




1b.) Step by step solution in text form!



To check which programs are accessing the Internet, you can use the `netstat` command in the command prompt (`cmd.exe`). The `-abf` parameter displays information about active connections and their associated processes. Here is a step by step guide:


1. Open Command Prompt:

- Press `Win + R` key combination to open the Run dialog box.
- Type `cmd` and press Enter. This will open the command prompt.

2. Running the `netstat` command:

- Type the command `netstat -abf 5` and press Enter.
- `netstat` now shows a list of all active connections, along with the associated processes that access them. The parameter `5` means the list will be updated every 5 seconds.

3. Redirecting the output to a text file:

- Add `>D:\Activity.txt` and press Enter.
- This will redirect the output of `netstat` to a text file named "Activity.txt" on drive D:.
 
After following these steps, you should have a text file named "Activity.txt" in the root of your D: drive.
 
which contains information about network activity and associated programs.
 
It is important to note that the Command Prompt (cmd.exe) requires administrative privileges to run `netstat` correctly. You should open the Command Prompt as an administrator by right-clicking the Command Prompt icon and selecting "Run as administrator."



-
▲ Back to the top ▲










FAQ 131: Updated on: 8 April 2024 10:53 Windows
Windows-Console

Change directory or drive in command prompt!


Sometimes you just need to change directory or even drive in Command Prompt on all MS Windows Desktop and Server OS Everyone probably knows how easy it
Windows-Console

robocopy or xcopy from command prompt on MS Windows OS!


Should I use robocopy or xcopy from the command prompt on MS Windows OS eg to copy and sync the directories? Thanks to the robocopy or xcopy commands, you
Windows-Console

Adjust the password expiry date via the command prompt!


In the command prompt you can adjust the password expiration date by defining it in the NET ACCOUNTS command Its that easy to adjust the password maximum
Windows-Console

NET ACCAUNTS for password rules under MS Windows OS!


With NET ACCAUNTS you can quickly set password rules for all MS Windows 11, 10, Desktop and Microsoft Server operating systems The "Net Accounts" command
Windows-Console

Delete the connection IPs of the visiting website via command prompt!


If you have problems establishing an Internet connection, it can be helpful to delete the connection IPs of the visiting website via the command prompt
Windows-Console

Deleting File or Folder via Command Prompt!


Deleting file or folder via command prompt on MS Windows desktop and server operating systems is a popular solution to delete Every once in a while, due
Windows-Console

Quickly disable windows user account via command line?


Very popular is the easy and fast deactivation of users via command line on MS Windows 11, 10, and MS Server 2022, 2019, operating systems Everyone

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, console, programs, access, internet, command, accessing, classic, prompt, netstat, show, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + NonCompressibleFiles
  + 4ur-Windows-8-Mouse-Balls
  + 12-Ants
  + Q-Dir
  + PaintOkay
  + DirPrintOK
  + FontViewOK
  + MeinPlatz
  + DesktopOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Change the workgroup / PC name using the command prompt or PowerShell! ◄
► C++ query whether a string or char ends with a specific character? ◄
► Missing attachments in Microsoft Outlook! ◄
► Disable and enable SmartScreen via CMD BATCH command? ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....