Array.Copy(AddressToBytes(remoteEP.Address.Address), 0, connect, 4, 4);
Gives me the error:
'System.Net.IpAddress' is Obsolete: 'IPAddress.Address is Address Family Dependent, use Equals method for comparison.'
Thanks
Well you silly! Just use the GetAddressBytes (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetipaddressclassgetaddressbytestopic.asp) method of the IPAddress class. Then you have a byte array that you can use in the constructor.