Would you like to learn how to detect which process is accessing an IP address using Powershell? In this tutorial, we are going to show you how to use Powershell to find out which process is accessing an IP address.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Which process is accessing an IP address

As an Administrator, start a new POWERSHELL command-line prompt.

Windows 10 - powershell elevated

Get the list of TCP connections on Windows.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Create a loop to list all processes performing TCP connections to a specific IP address.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

In our example, all processes connected to a specific IP address will be listed in the next 5 minutes.

Display a grid view of the processes performing TCP connections to an IP address.

Copy to Clipboard

After 5 minutes, the grid view will be displayed.

POWERSHELL - Processes connecting to an IP address

Create a CSV file listing which process is accessing which IP address.

Copy to Clipboard

Here is the file content.

Copy to Clipboard

Congratulations! You are able to find out which process is connecting to an IP address using Powershell.