//字符串转换为数字 System.Net.IPAddress ipaddress = System.Net.IPAddress.Parse("72.167.124.214"); long dreamduip = ipaddress.Address; //数字转换为字符串 System.Net.IPAddress ipaddress = System.Net.IPAddress.Parse(dreamduip.ToString()); string strdreamduip = ipaddress.ToString();