Connverting from a IPAddress to a String sTemp = IpAddress1.ToString(); Connverting from a string to IP Address IPAddress address; if (!IPAddress.TryParse(OurIpString, out address)) address = IPAddress.Parse("255.255.255.255"); //Error – use default broadcast address Convert from IP address to bytes Byte[] bytes = address.GetAddressBytes();