I have installed the npcap driver, because I want to monitor the windows loopback adapter. However the loopback adapter is not in the SharpPcap CaptureDeviceList.
I see the loopback adapter in Wireshark and Wireshark is able to monitor the loopback adapter.
What should I do to monitor the loopback adapter using SharpPcap?
I have helped you create an issue in their GitHub repo here: https://github.com/chmorgan/sharppcap/issues/15
Please wait for their answers.
Update:
I installed latest Npcap 0.80 with
Install Npcap in WinPcap API-compatible Mode
option checked and ran theExample01.IfList
example in the SharpPcap repo, and the output is:So obviously the last adapter is the
Npcap Loopback Adapter
. I don't know why the user cannot monitor the Npcap Loopback Adapter using SharpPcap. I will reply to him about my feedback in Stackoverflow.I can think of two possible causes:
Support loopback traffic ("Npcap Loopback Adapter" will be created)
option when installing Npcap.Install Npcap in WinPcap API-compatible Mode
option unchecked. In this way, SharpPcap can only recognize WinPcap and use the original WinPcap DLLs, which doesn't supportNpcap Loopback Adapter
at all.My suggestions are:
Support loopback traffic ("Npcap Loopback Adapter" will be created)
andInstall Npcap in WinPcap API-compatible Mode
options both checked.Now the user should be able to see the
Npcap Loopback Adapter
through the SharpPcap interface.