public static IPAddress[] GetIps() { IPHostEntry entry = Dns.GetHostEntry(Dns.GetHostName()); return entry.AddressList; }