def inet_ntoa(packed): bytes = raw.GetBytes(packed) ip = IPAddress(bytes) return str(ip)
def convertNumToIP(ipNum): ipBytes = IPAddress.Parse(ipNum.ToString()).GetAddressBytes() Array.Reverse(ipBytes) return IPAddress(ipBytes).ToString()