That is the code:
static void Main(string args)
IList<LivePacketDevice> allDevices = LivePacketDevice.AllLocalMachine;
if (allDevices.Count == 0)
Console.WriteLine("No interfaces found.");
LivePacketDevice device = allDevices;
using (PacketCommunicator communicator = device.Open(65536, PacketDeviceOpenAttributes.Promiscuous, 1000))
private static void PacketHandler(Packet packet)
Console.WriteLine(packet.Timestamp.ToString("yyyy-MM-dd hh:mm:ss.fff") + " length:" + packet.Length);
When I start the application it seems to do exactly what it is supposed to do.
But after a wile (often just a few seconds)
I cant connect to any web page
and i can't even ping to my router. ("no response, request time out")
to fix that I have to stop the application, disconnect my wifi-connection and reconnect to my router.
I do not have this problem when I use winpcap for c/c++ or Wireshark.
It seems like pcapdotnet is somehow overstraining my wifi card...
Any ideas how to solve that?