Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View programs' connections (open sockets)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View programs' connections (open sockets)
Authored by: TigerKR on Apr 01, '05 09:03:33PM

To monitor external (other computers/network devices) connections, I like to use:

sudo lsof -i4 | grep -v localhost

I added the grep part because I don't really care about internal (my computer talking to itsself) connections.

This command came in very handy when recently I freaked myself out because I did an:

sudo ipfw show

on the machine that I use as a firewall/natd/dhcp server for the LAN, and I found a whole boatload of https/443 connections I couldn't (immediately) identify. I panicked and looked at all of the connections from the computers on the LAN, and then did an nslookup for the IP in question (that was associated with most of the https/443 connections). It turns out that the entries were remnants on ipfw's "established" list and they were from an online banking transaction that I had conducted earlier in the day.



[ Reply to This | # ]