How get current ip-address for Xamarin.Forms ( Cross Platform) ? WifiManager I can't use and can't WifiManager include?
public string MyIp;
foreach (IPAddress adress in Dns.GetHostAddresses(Dns.GetHostName()))
{
MyIp = "IP Adress: " + adress.ToString();
SettingsTab.IP_Adress = MyIp;
break;
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments