I wrote a simple server app in C which runs on localhost. How to capture localhost traffic using Wireshark?
相关问题
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- What would prevent code running in a Docker contai
- How to run tcp and udp on a single port at same ti
- Code to analyze pcap file
- Docker-Compose: Can't Connect to Mongo
相关文章
- RMI Threads prevent JVM from exiting after main()
- fsc.exe is very slow because it tries to access cr
- How many times will TCP retransmit
- Writing an OS X kernel extension to implement Linu
- Virtual Box limit Bandwith on network [closed]
- Is ICMP a transport layer protocol?
- How to add negative filter in network tab of Chrom
- Chrome failing to connect to websocket server (Opc
You can view loopback traffic live in Wireshark by having it read RawCap's output instantly. cmaynard describes this ingenious approach at the Wireshark forums. I will cite it here:
It requires cygwin's tail, and I could not find a way to do this with Windows' out-of-the-box tools. His approach works very fine for me and allows me to use all of Wiresharks filter capabilities on captured loopback traffic live.
On Windows platform, it is also possible to capture localhost traffic using Wireshark. What you need to do is to install the "Microsoft loopback adapter", and then sniff on it.
I haven't actually tried this, but this answer from the web sounds promising:
http://forums.whirlpool.net.au/archive/1037087, accessed just now.
You cannot capture loopback on Solaris, HP-UX, or Windows, however you can very easily work around this limitation by using a tool like RawCap.
RawCap can capture raw packets on any ip including
127.0.0.1
(localhost/loopback). Rawcap can also generate apcap
file. You can open and analyze thepcap
file with Wireshark.See here for full details on how to monitor localhost using RawCap and Wireshark.
If you're using Windows
it's not possible- read below. You can use the local address of your machine instead and then you'll be able to capture stuff. See CaptureSetup/Loopback.EDIT: Some 3 years later, this answer is no longer completely correct. The linked page contains instructions for capturing on the loopback interface.
Yes, you can monitor the localhost traffic using the Npcap Loopback Adapter