operties.GatewayAddresses; (gateway! = null)
{(GatewayIPAddressInformation gw in gateway)
{. AppendText ("GateWay:" + gw.Address + " r n");
}
} uniCast = adapterProperties.UnicastAddresses; (uniCast! = null)
{(UnicastIPAddressInformation uni in uniCast)
{. AppendText ("IP-Address:" + uni.Address + " r n");
}
}
} void ShowNetworkInterfaces ()
{computerProperties = IPGlobalProperties.GetIPGlobalProperties (); [] nics = NetworkInterface.GetAllNetworkInterfaces ();. AppendText ("" + computerProperties.HostName + computerProperties.DomainName + " r n" ); (nics == null | | nics.Length <1)
{. AppendText ("No network interfaces found. r n");;
} (NetworkInterface adapter in nics)
{properties = adapter.GetIPProperties ();. AppendText ("");. AppendText ("" + adapter.Description);. AppendText (" r n Type: "+ adapter.NetworkInterfaceType +" r n ");. AppendText (" Physical Address: "+ adapter.GetPhysicalAddress (). ToString () +" r n "); versions =" "; (adapter.Supports (NetworkInterfaceComponent.IPv4))
{= "IPv4";
} (adapter.Supports (NetworkInterfaceComponent.IPv6))
{(versions.Length> 0)
{+ = "";
} + = "IPv6";
}. AppendText ("IP version:" + versions + " r n"); (properties);. AppendText ("DNS suffix:" + properties.DnsSuffix + " r n");
}
} Form1 ()
{(); ();
} void button1_Click (object sender, EventArgs e)
{. Clear (); (); sendMessage = txtBoxMessage.Text; [] data = Encoding.Unicode.GetBytes (sendMessage);. Write (data, 0, data.Length); = string . Empty;
} void Connection ()
{
{= Dns.GetHostName (); = new TcpClient (hostName, port); = tcpClient.GetStream ();. Enabled = true;. Enabled = true;
} (Exception e)
{. Show (e.Message);
}
} void button3_Click (object sender, EventArgs e)
{();
} void button2_Click (object sender, EventArgs e)
{. Clear ();. AppendText ("WORKSTATION: r n"); cl = new Class1 (); list = cl.GetServerList (Class1.SV_101_TYPES.SV_TYPE_WORKSTATION); (string name in list)
{. AppendText ("" + name + " r n"); iphostentry = Dns.GetHostByName (name); nIP = 0; (IPAddress ipaddress in iphostentry.AddressList)
{. AppendText ("IP #" + + + nIP + ":"...