Check out example codes for "c# get wifi ip address". It will help you in understanding the concepts better.

Code Example 1

string myIP = Dns.GetHostAddresses(Dns.GetHostName())[0].Address.ToString();

Code Example 2

string Myhost = System.Net.Dns.GetHostName();

string myIP = System.Net.Dns.GetHostAddresses(Myhost)[0].Address.ToString();

Learn ReactJs, React Native from akashmittal.com