This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Can wireshark capture traffic between a browser and jboss (both running on localhost)?

0

I'm trying to capture traffic between a web browser running on my windows 7 machine and a jboss server also running on my machine but wireshark doesn't seem to capture it.

For what it's worth, I've successfully captured the traffic if the web browser is on another machine.

Is this even possible? If so, what am I missing?

Thanks in advance, Tom

PS. Wireshark is also running on my machine.

asked 16 Jun '12, 06:25

tmuldo's gravatar image

tmuldo
1112
accept rate: 0%


2 Answers:

2

As Kurt Mentioned, Wireshark is not the tool to use for sniffing loopback traffic on the Windows platform. As mentioned on the Wireshark wiki's Loopback page that Kurt also provided, you might want to try RawCap. For me, it's been the best solution I've found so far for sniffing Windows loopback traffic.

answered 16 Jun '12, 07:37

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%

1

Unfortunately you cannot sniff the loopback interface on Windows with Wireshark (WinPCAP).

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

UPDATE: Check the reference for RawCap in that link (see answer of @cmaynard blow).

My preferred tool for web debugging is a proxy called Fiddler.

http://www.fiddler2.com/fiddler2/

Fiddler is a good companion to wireshark if you can't sniff the traffic and you need to see the whole communication (URLs, error messages, etc.).

There are also "web debugging" plugins for Firefox (and IE), like Firebug, HttpWatch and others:

https://addons.mozilla.org/de/firefox/addon/firebug/
http://www.httpwatch.com/

And finally, there is Nirsoft SocketSniff, which will show communication on localhost

http://www.nirsoft.net/utils/socket_sniffer.html

Regards
Kurt

answered 16 Jun '12, 06:46

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 16 Jun '12, 08:22