1

I'm trying to get the IP , port and MAC addresses for all machines on my LAN using SharpPcap,

I tried to ping all possible IP addresses according to my LAN base IP address as I thought that SharpPcap can capture the ping replay packet then parse it and get the needed info, but SharpPcap doesn't capture the ping replay packet at all!

Basically I'm using this code to capture the reply packets:

https://github.com/rubystream/SharpPcap/blob/master/Examples/Example6.DumpTCP/Example6.DumpTCP.cs

Modar
  • 85
  • 6
  • If you want to use pure .NET without SharpPCap, look at this question: http://stackoverflow.com/questions/13492134/find-all-ip-address-in-a-network – Icemanind Oct 24 '14 at 17:46
  • Actually I need to use SharpPcap as it's able to provide me with the port and MAC addresses of the packet source! – Modar Oct 24 '14 at 18:12
  • You can also try to use Pcap.Net (http://pcapdot.net) as it also provides use with that information. – brickner Nov 01 '14 at 06:39

0 Answers0