

When you’ve stopped recording data, you’ll need to open the activity.txt file to see the results. We’re then using the piping symbol “>” to save the results to a text file named “activity.txt.”Īfter issuing the command, wait a couple of minutes, and then press Ctrl+C to stop the recording of data. The 5 option causes the command to poll every five seconds for connections (to make it more easy to track what is going on). The -f option displays the full DNS name for each connection option, so that you can more easily understand where the connections are being made.

The -b option adds what application is making the connection to the results. The -a option tells it to show all connections and listening ports. We’re using four modifiers on the netstat command. And if you’re using a version of Windows before Windows 7, you’ll need to run the Command Prompt as administrator.Īt the prompt, type the following command, and then press Enter. If you’re using Windows 7, you’ll need to hit Start, type “PowerShell” in the search box, right-click the result, and then choose “Run as administrator” instead.

If you’re using the Command Prompt instead, you’d also have to run that as an administrator. If you’re using Windows 8 or 10, fire up PowerShell as an administrator by hitting Windows+X, and then selecting “PowerShell (Admin)” from the Power User menu.
