Hello,
I am trying to find a newer way of implementing the following but I am unsuccessful thus far:
At the moment I am getting the following error message:
Any ideas of the correct way of doing this?
Thanks.
I am trying to find a newer way of implementing the following but I am unsuccessful thus far:
Code:
private void SetDataPort(IPEndPoint ep)
{
byte[] hostBytes = BitConverter.GetBytes(ep.Address.Address);
.......
Code:
'System.Net.IPAddress.Address' is obsolete: 'IPAddress.Address is address family dependant, use Equals method for comparison.'
Thanks.
Comment