![]() ![]() get help connecting more devices to your network or resolve troubles with your router. ICaptureDevice device = CaptureDeviceList.New() ĭevice.OnPacketArrival = new PacketArrivalEventHandler(device_OnPacketArrivalSend) ĭevice.Open(DeviceMode. Learn about ways to solve common Internet connection issues. Private static void CaptureFlowSend(string IP, int portID, int deviceID) Var devices = CaptureDeviceList.Instance Ĭonsole.WriteLine("No device found on this machine") Ĭonsole.WriteLine("proc NetTotalBytes : " ProcInfo.NetTotalBytes) Ĭonsole.WriteLine("proc NetSendBytes : " ProcInfo.NetSendBytes) Ĭonsole.WriteLine("proc NetRecvBytes : " ProcInfo.NetRecvBytes) IPAddress addrList = Dns.GetHostByName(Dns.GetHostName()).AddressList Int pot = int.Parse(soc.Substring(pos 1)) Įlse if (line.StartsWith("UDP", StringComparison.OrdinalIgnoreCase)) ![]() If (line.StartsWith("TCP", StringComparison.OrdinalIgnoreCase)) Check if there are damaged ethernet ports or any hardware 3. Windows 10 will re-detect then reinstall it. Check for loose or damaged ethernet cables 2. If the problem persist, uninstall the adapter then restart. Regex reg = new Regex("\\s ", RegexOptions.Compiled) Press Windows key X Click Device Manager Expand Network adapters Right click your Ethernet adapter Click Disable Wait 10 minutes Right click then enable it again. #region get ports for certain process through executing the netstat -ano command in cmd Īnd I have done a simple demo base on your description. If you want to monitor network traffic for certain process, I suggest you use SharpPcap,which is A framework for capturing, injecting and analyzing network packets for.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |