See connections in a real time enviroment

December 2016




Under Linux



In order to observe your outgoing network connections and open ports, type in a terminal in real time:
sudo watch lsof -i
  • Items displayed:
    • The name of the program making the connection (COMMAND) and its PID
    • The user who started the program (USER)
    • The login
  • This display is updated every 2 seconds.
  • Example:


Under Windows



Using netstat utility allows you to display a connection status, but the information displayed screen is not updated when the connections change. Netstat shows results only once.
  • Using netstat
  • To use netstat
  • Start/ Run/ cmd and in the MS-DOS type the command:
  • netstat -ano
  • The connections will be displayed.
  • Example:

Related :

This document entitled « See connections in a real time enviroment » 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.