Check out example codes for "c# get pc ip address". It will help you in understanding the concepts better.
Code Example 1
public static string GetLocalIPAddress()
{
var host = Dns.GetHostEntry(Dns.GetHostName());
foreach (var ip in host.AddressList)
{
if (ip.AddressFamily == AddressFamily.InterNetwork)
{
return ip.ToString();
}
}
throw new Exception("No network adapters with an IPv4 address in the system!");
}
Learn ReactJs, React Native from akashmittal.com