public mainForm() { int cnt = 0; Console.WriteLine(Dns.GetHostName()); IPAddress[] localIPs = Dns.GetHostAddresses(Dns.GetHostName()); foreach (IPAddress addr in localIPs) { if (addr.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) { ConnectedDevices.GetCompiled(addr); Console.WriteLine(addr); } cnt++; } InitializeComponent(); //string str = SerializationFunctions.Serialize(new ThisDevice()); //Console.WriteLine(str); cnt++; }