Dynamic IP[The solution]

Results 1 to 2 of 2
  1. #1
    Novice iowan is offline
    MemberRank
    Mar 2007 Join Date
    1Posts

    Dynamic IP[The solution]

    Hello,

    Everybody know how to setup a hostname for his dynamic IP like "NO-IP" & DynDNS etc, the idea behind this technique is to make your hostname point to your IP once it change, cool.

    But the problem with gunz is when you setup & syncronize your hostname with your ip, and change the system.xml and stuff, you need to manually update the database with your IP that you have now, every time because gunz doesn't translate the hostname from your database to a working ip that you own at the current time, wich generate a beautifull red message:
    "Cannot access server."

    so i created a program that can auto update the database every minutes or so with the IP that you own, and this is great for people who run the server at home or who have a dynamic ip, this application can bypass the NAT if you are behind a router and update the database with your WAN IP

    This is also a solution for administrators who plan to make a reliable server with a dynamic ip, if you lost internet connection then you will have a new ip adress, once the hostname is syncronised again and the software reach his interval your server(s) will be up and running without your intervention.

    the configuration of the updater is quit simple the updater come with an INI file just like gunz server, the INI file look like this:

    Code:
    [DB]
    DNS="GunzDB"
    USERNAME="sa"
    PASSWORD="your password"
    
    [UPDATER]
    SERVERID=""
    HEARTBEAT=300
    SERVERID you can find this value in the database, in the dbo.ServerStatus table, if you have more than one server to update you can write in this value SERVERID="1,2,3" etc where 1 & 2 & 3 are servers id if you have just one server write SERVERID="1" where 1 is the serverid of your server

    HEARTBEAT take a number value (without quotes) the heartbeat value is the interval (in seconds) wich the app update again the db.

    Hints: How to create a hostname for your dynamic IP



    if you have any problems, bugs etc with the program just let me know, Bye bye
    Attached Files Attached Files


  2. #2
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Dynamic IP[The solution]

    Instead of updating it every couple of seconds (or mins, depending what you set it to), why not find the regular time that your ip address changes and then set it to update on that time? I can understand that it might change differently for some, but it shouldn't be that hard to find out then set the heartbeat to that.

    Like, a dynamic ip might change every 24 hours. It would just be a hassle to put that into seconds.



Advertisement