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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Notes
tcpdump: lo: No such device exists, get the name by coping it from the output ofFor example, if the output is as below you need
lo0(which is reusult9.here: