This project is read-only.

get IpAddress from packet.IpV4.Source

Nov 14, 2012 at 8:55 AM

Hi Dear

How to get IpAddress from packet.IpV4.Source?

 

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

 

Best Reards

Nov 14, 2012 at 12:53 PM

try packet.Ethernet.IpV4.Source.

Nov 23, 2012 at 7: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 8:19 PM

Thanks