Viewing connections in real time

December 2016






Linux


Under Linux, to view your outgoing network connections in real time, open a terminal and type the following commands:

sudo watch lsof-i 


It will display:
  • The name of the program making that connection (COMMAND) and its PID
    • The user who started this program (USER)
    • The address of connection



This display is updated every 2 seconds.

Windows


Netstat is the command used to view the network in real time under Windows.

Proceed as follow:
  • Go to menu start and select run.
  • Then type netstat and click on OK.



Related :

This document entitled « Viewing connections in real time » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.