See connections in a real time enviroment
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: