Wireshark loopback capture setup

Source: Internet
Author: User

From:

Http://wiki.wireshark.org/CaptureSetup/Loopback

 

@ ++

Alternatives

 

A required cial network sniffer called commview (from tamosoft) allows to capture packets on the localhost network adapter but it dissects fewer protocols, so you can capture packets with commview and save them into a file and open it with Wireshark.

An other alternative is to add a route to your local machine going through the Network Gateway:

 
Route add <your_ip> mask route 255.255 <the_gateway> metric 1

 

With <your_ip> being different from 127.0.0.1. It shocould (has to) be the resultIpconfigCommand (IP address field) <the_gateway> has to be the default gateway field taken fromIpconfig/allResult.

Doing so, every network traffic from your machine to itself will use the physical network interface, it will then go to the gateway, back to you. therefor, you will see each packet twice, but it can be filtered on The View.

Be careful, since your machine will use the actual network to talk to itself, it may overload the network. It may be wise to remove the new route once you are done with the tests:

 
Route Delete <your_ip>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.