Computer Hope

Internet & Networking => Networking => Topic started by: crazykiwi on March 02, 2007, 09:24:13 AM

Title: Dynamic ip .bat changer
Post by: crazykiwi on March 02, 2007, 09:24:13 AM
I would like to put together a .bat file for a Americas Army Server that’s can be used for all users that have a dynamic ip,

Details: There is a txt file called server.ini, in this file on of one of the lines is this statement ip=1.2.3.4 or what ever your outside ip is this has to be changed each time you outside isp changes the ip. And this is painful.

So what I was trying to do was a bat that  could ping your host name (dyndns) linked to you ip then it would check this against the ip in the .ini file and update if different if different then reboot the bat file that runs the server I guess defiantly possible.

Any ideas anyone on how we could do this