I cant seem to get or find information on finding my routers public IP? Is this because it cant be done this way and would have to get it from a website?
using System.Net;
private string GetWorldIP()
{
String url = "http://bot.whatismyipaddress.com/";
String result = null;
try
{
WebClient client = new WebClient();
result = client.DownloadString(url);
return result;
}
catch (Exception ex) { return "127.0.0.1"; }
}
Used loopback as fallback just so things don't fatally break.