SyntaxFix
Write A Post
Hire A Developer
Questions
To find all local IPv4 addresses:
IPAddress[] ipv4Addresses = Array.FindAll( Dns.GetHostEntry(string.Empty).AddressList, a => a.AddressFamily == AddressFamily.InterNetwork);
or use Array.Find or Array.FindLast if you just want one.
Array.Find
Array.FindLast