Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Live monitoring of network connections

Live monitoring of network connections
Thread Tools
Forum Regular
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 22, 2003, 12:28 PM
 
Last night I noticed that netmonitor was showing traffic coming in to my machine at about 20KB/s. The odd thing is that it was the only program I had open so there should have been little to no network traffic at all. I headed to the terminal and ran netstat -f inet to see what connections I had open. According to the output I didn't have any outside connections open. What I was hoping for was to see if any of the connections it showed were actively increasing the byte and packet count but no dice. I unplugged my ethernet cable and sure enough traffic dropped to 0 and when I plugged it in it started showing I was downloading something again. I rebooted the machine and as soon as netmonitor was up it showed I was still getting roughly 20KB/s coming in to my machine.

I found a program called iptraf for linux that can show live statistics for each network connection along with bytes and packets for each. After reading the man page for netstat I still couldn't see how you could get it to show you a live representation of all established network traffic and statistics on each connection. Is there something I'm just missing with netstat or is there an iptraf equivalent for OS X? Is there another good way to see exactly what network connections are doing on my computer?
http://www.apple.com/macosx/feedback/
Apple doesn't read these message boards. If you have a complaint or suggestion for OS X send feedback where it will do some good.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jun 22, 2003, 10:15 PM
 
Ethereal or tcpflow will help you solve your question. Ethereal is a packet analyzer, and tcpflow records incoming and outgoing data transmissions to a file.

Both are free, open source.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:02 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2