In the program you need to get your ip address. I do this with this function:
public static string GetLocalIPAddress() { var host = Dns.GetHostEntry(Dns.GetHostName()); foreach (var ip in host.AddressList) { if (ip.AddressFamily == AddressFamily.InterNetwork) { return ip.ToString(); } } return null; } But there is the following problem: If a virtual network adapter is installed on the machine (for example, from VirtualBox), then the function displays its ip-address.
Is it possible to somehow filter the virtual adapters?