get IpAddress from packet.IpV4.Source

Nov 14, 2012 at 7:55 AM

Hi Dear

How to get IpAddress from packet.IpV4.Source?


I use "packet.IpV4.Source.ToString()" but it return wrong IPAddress like "".


Best Reards

Nov 14, 2012 at 11:53 AM

try packet.Ethernet.IpV4.Source.

Nov 23, 2012 at 6:16 PM

Yes, psptst1 is probably right.

If you have IPv4 over Ethernet packets, you need to use packet.Ethernet.IpV4.Source.

Only in special cases you have IPv4 packets without any level 2 layer, and then you can use packet.IpV4.Source.

Dec 12, 2012 at 7:19 PM