Monitoring your computer’s Internet activity is a powerful tool, enabling you to:
- Keep an eye on background processes
- Reveal viruses and other malware
- Expose unauthorized access
- Monitor running programs
- Log process activity
..and much more.
The best part? It’s super-easy. Here’s how I do it on Windows XP:
cmd and type
netstat -n 5 >scan.txt
After a minute or two (or any amount of time), press Ctrl+C to stop monitoring. Type
scan.txt to open the log file and check the results
There are many ways to modify the log output using various parameters. Here are a couple of alternate commands you can try:
netstat -b 5 >scan.txt or
netstat -nao 5 >scan.txt
The second one also provides PID (Process ID) numbers that may be verified against running processes in the Windows Task Manager (under View > Select Column..). Feel free to terminate any processes running unwanted TCP connections. For a complete list of netstat parameters, type
netstat help in the command prompt.
Here’s how I do it on Mac OSX:
Open Terminal, and type
netstat -b >> scan.txt
After a minute or two (or any amount of time), press Ctrl+C to stop monitoring.
more scan.txt to open the log file and check the results.