I use this type of code to get my systems IPv4 address:
string ipadress = Dns.GetHostEntry(Dns.GetHostName())
.AddressList.FirstOrDefault(ip => ip.AddressFamily == AddressFamily.InterNetwork)
.ToString();
System.Windows.Forms.MessageBox.Show(ipadress);
But as I have more than 1 network interface, the result might not be what I need. Can I search for the interface which IP begins with "10."? That would be what I need. Just the IP address of interface within network 10....
:)
AddressListgive you?