This is what I have done.
IpV4Address tempTargetIP = new IpV4Address("192.168.0.1");
byte targettIP = new byte;
targettIP.Write(0, tempTargetIP, Endianity.Big);
arpLayer.TargetProtocolAddress = new ReadOnlyCollection<byte>(targettIP)
Now, my problem is, I do not know how to convert from "TargetProtocolAddress" back to "IpV4Address" class. Then, I would like to convert it to string.
I tried using "arpLayer.TargetProtocolAddress.ToString()" but got this:
I have to do this in one part of my program. I hope somebody here could help. Your help is much appreciated. Thank you.