Tcpdump: localhost to localhost

I am writing a program that sends TCP packets from localhost to localhost. And I want to use tcpdump to capture packets. But nothing captures. My team on Ubuntu:

sudo tcpdump 

What argument should I add? Thank!

+70
linux localhost tcpdump
Jun 28 '10 at 8:15
source share
1 answer
 sudo tcpdump -i lo 
+117
Jun 28 '10 at 8:17
source share
— -



All Articles