I'm trying to get the public ip of the team. In addition to additional information such as the type of browser and the location of the public IP obtained. One of my main questions is to know if there is a place where this information can be obtained and that it is reliable, or if there is another method of obtaining it. I was able to get the ip as follows:
HttpWebRequest wq= (HttpWebRequest)WebRequest.Create("http://bot.whatismyipaddress.com");
HttpWebResponse wr = (HttpWebResponse)wq.GetResponse();
StreamReader sr = new StreamReader(wr.GetResponseStream(), System.Text.Encoding.UTF8);
IPAddress ip = IPAddress.Parse(sr.ReadToEnd());
sr.Close();
wr.Close();