i read here a lot of topics , its nice to see some more servers those days , but its badly enouf only hamachi servers because the most hosts got a dynamic ip ( change every day)
now , before i going explain what to do to solve this problem , so you can run a server with a dynamic ip with out changing your server config files every day
this guide can be used for everything , for a static ip / a vps server or even a dedicated server
but i wont suggest to do that , as it can give a lot of problems
so ... only use it if you got a DYNAMIC ip
and for the smart guys under us , before even trying this , be sure that you know how to get port 80 open on your computer (that they are able to conect to your extern ip )
i wont explain how to do that as there are enouf guides here that explains that
but there is no guide that explains this small hack (its not realy a hack , its basic stuff ...)
first of all
lets start with this guide
this are the things i going explain
- how to make your dynamic ip to a website (making it static)
- what to change and how it works
- what to do after it ?? (why does this works)
ok , lets start with the first 1
1)
please go to dyn-dns or a other provider that gives a website pointed to your ip , download the program and follow the guides there (its a program that updates your ip every XX hours)
if that is done , try it out to see if port 80 is working , do you see your own site (with wamp for example)
if yes , please continue , if no ... then search for a guide how you need to do it
2)
now it is time to release the big secret that i hate to release , as it is so usefull that you dont need a vps/dedi anymore to get that static ip ^^ (you still need Quality ofcourse but thats not the point here)
after you registered your website (see 1) ) then it is time to put that website in your oem.dat like the below example
Code:
Ip1=demonpower.dyndns.org
Code:
Ip1=127.0.0.1
UPDATE:
it seems that the client crash when you try to do that
so you need to put your server ip in there (the ip you current have)
you can use this way instead to be sure that they always got the latest patch if your ip is changing (so you just change oem.dat with your new ip and you bring a patch out)
go to your autopatch folder and change SocketConfig.ini
change it so it looks like below
Code:
Server1=电信 game.dyndns.org 9528 game.dyndns.org 9528
please note , you still need to bring out a patch every time your ip changes
after you dit that is it time to change some nice settings in the server config files
you only NEED 1 ip
on the files you see this code on a lot of locations
Code:
localhost
Code:
127.0.0.1
Code:
[Database] DB_IP =127.0.0.1
Code:
[System] SERVERIP =localhost
you see somewhere this code to
Code:
[InternetPort] MASTER_IP = 127.0.0.1
now the fun start
change that ip (and on the other files ) that you putted there to make your server working to the below ip
Code:
0.0.0.0
Code:
[InternetPort] MASTER_IP = 0.0.0.0
now it is time to explain everything so you can understand why it need to be done that way and why it is only usefull if you got a dynamic ip
3)
a dynamic ip is a ip that change every XX time
so it is realy hard work to get that working , you need to bring out patches every day and you need to send everytime a new realm (where the server is located like oem.dat)to your players
that is why you need to put that website you got from dyn-dns in it
the realm resolve the domain name to a ip adress , so a ip adress is not needed as the website give the same effect
as the website is updated every XX hours with your fresh ip does they never need to change the realm , it just stays up to date as your ip change
so that problem is just fixed with it
now the other part
Code:
0.0.0.0
well , the above ip adress is a CATCH ALL ip adress, meaning that it takes every single ip adress it can get , and listen to all ip adresses that points to your pc
so if you are on hamachi , you can conect , if you are on localhost you can conect (at the same time) or if your friend conects to your ip , it will work (all at the same time)
for that reason do i not recommerd it to use it with hamachi/dedicated/vps , as it takes all your ip's and makes you vurnable for big atks on ip's you do not even use
wamp use the same system to get conected to your extern adress (apache basicly)
that small thing is basicly the biggest hack there is to prevent changing your files over and over again
if you do the above stuff right , then the users will always be able to conect to you , even if your ip is changed (as 0.0.0.0 takes that new ip (catch all) , and the dyn-dns tool updates your website+realm (as it is pointed to the website)
if you got more questions about this , feel free to ask
but DO NOT ASK HERE FOR HELP ABOUT HOW TO SETUP A SERVER
i am here to help with this release , but not to setup your server .... there are guides for
a small note , i dit not tested this yet , but it should work
it is possible that you need to reboot the server to get the new ip binded , but normal that is not even needed as it accept all conections from all ip's that points to your pc
then why do i not recommerd it for dedicated servers ? its nice to get a easy setup ??
well , mostly (and specialy my dedicated servers) have 5 ip adresses located to your dedicated, so put it on a catch all and you can conect to the server from the 5 differend ip's , banning a user or even checking where teh user came from can get realy confused (firewall stores conected ip) and probaly you wont figure it out where it came from
they can use it to to do a multi atk on your server , as they atk to 5 ip's at the same time and they are conected to the server ... i dont need to explain what damage that can do
same for a static ip , it is not needed to put that as you got a static ip
and for a vps , same reason as the dedicated server , some providers give you 3 ip's , others only 1 ip
hopley you like this release
and again , i only released it because i was tired of all the questions i got to setup a server , and i was tired to see a lot of hamachi servers when they got there website on there own dynamic ip (and a few other reasons)
enjoy the hack , make some fun , show your skills and proof that you can competite in the gaming world by making your first public server with out hamachi
Greetings From PowerChaos