Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Server WAN IP checker/updater for dynamic IPs v1.2!

The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
This should please a few people with dynamic IP addresses.

This small mod will check the WAN IP of your server whenever the server starts up, "service cabal start" or "service cabal restart" is called and update your WorldSvr config ini files with the current IP before the services (re)start. It pretty much saves you having to worry about changing the IP address in your configs every time the server IP changes.

This is best used with a no-ip type hostname in the internal.txt of your player's game client.

Big thanks to [hidden] and Cath22 for testing and ideas.


Download ->

me said:
Dynamic ip auto config for Cabal v1.2
=======================================

Checks the WAN IP when the server starts and updates all worldsvr ini
files with the current one.

Working DNS is required on the centos machine or this won't work. You
must be able to browse the web or ping hosts from centos or the script
can't figure out the IP.

This is only needed for non-chumpy servers or chumpy v1 and v2 servers
as the wan checker is already included in my v2.5 files. If you have
my 2.5 files then type "cabalhelp" to list your available commands.


Installation
==============

Copy the files to centos. Only /etc/init.d/cabal gets overwritten
so back up the old copy just in case.

Chmod /home/cabal/cabal_autorestart.sh to 0777.

Run /home/cabal/cabal_dynip.sh to see the commands it supports.


Removing
==========

To completely remove delete /home/cabal/cabal_dynip.sh and
/home/cabal/daemons/wancheck_daemon.sh. Also replace /etc/init.d/cabal
with your backed up copy.


What it does
==============

The cabal_dynip.sh is just the controller that enables you to switch on/off
the wancheck_daemon.sh from being called.

Whenever "service cabal start" or "service cabal restart" is called the
wancheck_daemon.sh script should run, test the WAN IP and update all worldsvr
config inis to the new IP if it has changed. This includes boot up as well as
manual starts.
 
Last edited:
Master Summoner
Joined
Nov 9, 2004
Messages
527
Reaction score
53
Very useful release! its saving much of work, only service cabal restart and not need to change directly from the file. =] Recommended.
 
Newbie Spellweaver
Joined
Nov 5, 2008
Messages
11
Reaction score
1
very nice sir chumps, you rock!!! :) i owe u a lot...

chumpywumpy - Server WAN IP checker/updater for dynamic IPs v1.2! - RaGEZONE Forums
 
Junior Spellweaver
Joined
Apr 5, 2006
Messages
191
Reaction score
2
i been waiting for this thanx bro
 
The Cat in the Hat
Legend
Joined
Oct 26, 2005
Messages
4,475
Reaction score
677
I should have watched my mouth and not said/talked poop to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
 
Experienced Elementalist
Joined
Aug 10, 2008
Messages
291
Reaction score
10
im actually honnored coz im the 1st one to post an error ... LOL


and to quote "HELP" hehehehehe ^^
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Loyal Member
Joined
Jun 11, 2006
Messages
214
Reaction score
0
this is what happens when people don't read threw a post only glimpse at something and not read it full. but real nice work chump,
 
Newbie Spellweaver
Joined
Oct 16, 2008
Messages
68
Reaction score
0
Nice work Chumpy, thanks for this great release!
 
Newbie Spellweaver
Joined
Jul 28, 2007
Messages
16
Reaction score
5
At last, I've found the treasure :) thanks for this fine release...
 
Newbie Spellweaver
Joined
Feb 14, 2008
Messages
53
Reaction score
0
Sir Chumpy

is only for to be sure i wanna ask something,
Can i use this in files of DarkXl or only in your files ?
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
This will work with darkxl's files too, i made a separate release specifically to support other server files. My files actually have a slightly newer version already built in and i will be updating this one shortly so it has the same features.
 
Newbie Spellweaver
Joined
Feb 14, 2008
Messages
53
Reaction score
0
thx i will do on my server

EDIT
Sir Chumpy
i put this tool in my server everithing is ok, i can login but if i no setup "gen_config.sh" and put the wan ip i cant pass to chanel screen,
i think what i no make a mistake, if i do correct me, can you include in you "wan_check.sh" the configuration of "gen_config.sh", and if no necesary include please tell me what i have to do for no do this every time start my server please.

Thansk in advance.
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
This version of the wan check is a bit dumber than my current one as it doesn't compare against the current IP it just replaces regardless. The wan check is now a totally seperate command in my files now and once it has been tested a bit better i will release a version that will work with other files (mine relies on other bits of my files).

Also, gen_config.sh isn't one of my scripts. In v1 of my files i had a gen_config2.sh and in 2.0+ it is cabal_config.sh. The gen_config.sh in darkxl's files doesn't really work which is why i rewrote it in the first place for my repack ;)
 
Newbie Spellweaver
Joined
Aug 6, 2008
Messages
64
Reaction score
0
sir chumps this is a nice share of yours, but i encounter this problem, every time i try to "service cabal start" it corrupts my WorldServer.ini?
 
The Cat in the Hat
Legend
Joined
Oct 26, 2005
Messages
4,475
Reaction score
677
I should have watched my mouth and not said/talked poop to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
sir chumps this is a nice share of yours, but i encounter this problem, every time i try to "service cabal start" it corrupts my WorldServer.ini?

How does it do this? Does it completely empty it or just remove values? This version of the dynip (as it is now called) is pretty dumb and doesn't really check that it is putting a valid IP in there and sometimes it can put empty values if that is what it gets back from the ip check.

I am about to release an update for this but a bug has been found and i don't want to release it until i know the bug is gone so it will probably be tomorrow.
 
The Cat in the Hat
Legend
Joined
Oct 26, 2005
Messages
4,475
Reaction score
677
I should have watched my mouth and not said/talked poop to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
 
Newbie Spellweaver
Joined
Nov 20, 2008
Messages
32
Reaction score
1
Perfect chumpywumpy !!

I use this and work !!...
 
Back
Top