39

Every time I try to filter to just show a specific IP address, I get an error indicating that it is "not an interface or a field." I have no idea what that means. Furthermore, I don’t really see any localhost traffic in the logs anyway.

How can I show TCP localhost traffic?

Platform: Windows 7

3
  • 1
    how exactly are you trying to do this?
    – Oleksandr Kravchuk
    Commented Nov 21, 2012 at 1:44
  • 7
    Please try Npcap: github.com/nmap/npcap, it is based on WinPcap and supports loopback traffic capturing on Windows. After you installed Npcap, you can capture the loopback traffic using Wireshark.
    – hsluoyz
    Commented Nov 8, 2015 at 8:24
  • @Yang Luo, Wireshark installs, and is built around, npcap. Despite this Wireshark still cannot get traffic to 127.0.0.1 from a fresh install. At least on my Windows 10 PC.
    – AlastairG
    Commented Apr 6, 2021 at 7:36

5 Answers 5

24

If you are trying to this on a Windows computer, unfortunately it is not possible out of the box. You will need to install some additional software that will capture data on the loopback interface.

On a Linux computer, you will need to capture from the loopback interface which is lo most of the time. Most other Unix operating systems use lo0.

0
9

To keep this current, as hsluoyz said, install npcap

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

When installed on Windows Vista or later (including Win7, Win8 and Win10) with option "Support loopback traffic ("Npcap Loopback Adapter" will be created)" selected, it will create an Npcap Loopback Adapter that can be selected in Wireshark so as to capture IPv4/IPv6 loopback traffic.

5

Although you found the answer before I could respond, you can also use Socket Sniffer, which looks at Winsock calls and monitors network sockets; the download link is at the bottom of the page.

2
1

Use RawCap, to capture traffic of localhost (127.0.0.1). You just need to download Rawcap.exe and run it. It will open its command prompt listing interfaces. Now select one of the interface which has loopback address 127.0.0.1.

1

For windows Nccap installed by default now,

enter image description here

https://wiki.wireshark.org/CaptureSetup/Loopback,

Starting from Wireshark 3.0.0, the Windows installer includes and will install a recent version of Npcap.

1
  • You're the MVP.
    – Zoomzoom
    Commented Jan 6, 2023 at 21:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .