FingersMcSteal
Member
I wasn't sure where to post this so mods / admin feel free to move to the correct section if you need to.
Took me a couple of hours on and off to figure why things wouldn't work but finally got it... it's from the serverlist.cs file that was causing the problems for a connection. Mine is an older version of the server list file and had this in it..
This bit...
WebRequest req = HttpWebRequest.Create( "http://www.runuo.com/ip.php" );
is looking for the runuo site which aint there any more... what a head ache tonight lol
Just letting you know in case others hit a problem with it.
Took me a couple of hours on and off to figure why things wouldn't work but finally got it... it's from the serverlist.cs file that was causing the problems for a connection. Mine is an older version of the server list file and had this in it..
Code:
private static IPAddress FindPublicAddress()
{
try {
WebRequest req = HttpWebRequest.Create( "http://www.runuo.com/ip.php" );
req.Timeout = 15000;
WebResponse res = req.GetResponse();
Stream s = res.GetResponseStream();
StreamReader sr = new StreamReader( s );
IPAddress ip = IPAddress.Parse( sr.ReadLine() );
sr.Close();
s.Close();
res.Close();
return ip;
} catch {
return null;
}
}
This bit...
WebRequest req = HttpWebRequest.Create( "http://www.runuo.com/ip.php" );
is looking for the runuo site which aint there any more... what a head ache tonight lol
Just letting you know in case others hit a problem with it.