tcpdump: localhost to localhost

David picture David · Jun 28, 2010 · Viewed 76.8k times · Source

I write a program that send TCP packets from localhost to localhost. And I want to use tcpdump to capture the packets. But nothing is captured. My command in Ubuntu:

sudo tcpdump

What argument shall I add? Thanks!

Answer

unbeli picture unbeli · Jun 28, 2010
sudo tcpdump -i lo