Quote:
Originally Posted by taguro
 provides a program that automatically updates the dynamic ip as part of their service. Perhaps this would be a viable option for you guys =P
|
thats what they're planning on doing... using a domain from dyndns as their website domain (which auto updates the host using their DynDns which is provided) and then getting the IP from that webhost and writing to Server.dat for their clients... and urm i'll just show you all the code :P
here is how i did it for Project-X:
Code:
string IP = Dns.GetHostEntry("projectxco.noip.biz").AddressList[0].ToString();
if (IP == null)
MessageBox.Show("Server Offline...");
else
{
string[] Lines = new string[] { "[Header]", "GroupAmount=1","Group1=GroupPic8","
","[Group1]","ServerAmount=1","","Server1=Project-X",
"Ip1="+IP,"Port1=9958","ServerName1=Project-X",
"HintWord1=","Pic1=servericon58"};
File.WriteAllLines(@"Server.dat", Lines);
}
Any questions feel free to ask - cause i won't reply