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!

Setting up a server with a static IP

(⌐■_■)
Joined
Feb 2, 2012
Messages
681
Reaction score
102
Hello,
first of all you have to follow the same tut in
Aznkidd235's thead
and thank's to him for posting such a good guide

Actually you have to follow the guide until step (5) cuz you have to change your ip in config
to your new static ip

tips:
1.MAKE SURE THAT YOU HAVE STATIC IP !

2. open cmd and write hdwwiz

3.next then "Install the hardware that i manually blabla ..

4. choose "network adapters"

5. Choose Loopback adapter in microsoft

NourAyman - Setting up a server with a static IP - RaGEZONE Forums
6. open cmd and write "ipconfig" to see your local ip in your main adapter
NourAyman - Setting up a server with a static IP - RaGEZONE Forums

7.in network panel head to your adapters and open your recently added one

8.follow these instructions
NourAyman - Setting up a server with a static IP - RaGEZONE Forums
9. open your router page then forward ports with your localip ( the 192.168.1.101 as it's showin in step8)
The ports are "27017" , "8889" ,"8888"

10. you can now put your static ip in these texts
Code:
loginserver/configs/network.properties & gameserver/configs/network.properties
gameserver/configs/server.properties
service.ini in client
 
Last edited:
Junior Spellweaver
Joined
Aug 8, 2014
Messages
164
Reaction score
26
very good guide and if I worked it was necessary to edit the xmlrpc of gameserver and login thank you very much.
:laugh:
 
(⌐■_■)
Joined
Feb 2, 2012
Messages
681
Reaction score
102
This guide is for local pc that is trying to run a server behind a static ip
so if it's running on a host/vps then there is no need to follow this guide
just replace your ip directly in these files
without creating custom adapters
Code:
loginserver/configs/network.properties 
gameserver/configs/network.properties
gameserver/configs/server.properties
service.ini in client

feel free to pm me on discord 0xCC#5860
 
Newbie Spellweaver
Joined
Jan 16, 2018
Messages
7
Reaction score
0
This guide is for local pc that is trying to run a server behind a static ip
so if it's running on a host/vps then there is no need to follow this guide
just replace your ip directly in these files
without creating custom adapters
Code:
loginserver/configs/network.properties 
gameserver/configs/network.properties
gameserver/configs/server.properties
service.ini in client

feel free to pm me on discord 0xCC#5860
i already test that case too, but still not work :(
 
(⌐■_■)
Joined
Feb 2, 2012
Messages
681
Reaction score
102
is there any error shown in loginserver or gameserver window ?
 
Newbie Spellweaver
Joined
Jan 16, 2018
Messages
7
Reaction score
0
is there any error shown in loginserver or gameserver window ?

all normaly, when i use client in my PC press [Start] ingame then it show " failed to connect" , i already forward port 8888, 8889 UDP and TCP and setting the firewall correctly
 
Newbie Spellweaver
Joined
Aug 16, 2016
Messages
42
Reaction score
10
I have the same problem , it's "failed to connect" . Already port forwarded 8888 and 8889 but still the same .
 
Junior Spellweaver
Joined
Aug 28, 2012
Messages
141
Reaction score
78
I am using hamachi, but if I put the hamachi ip in service.ini it gives an error [The file is corrupted.
If it persists, please run file-recovery from the launcher]
The server did not give a problem is the part of the client itself. It does not accept hamachi ip at all.
 
Initiate Mage
Joined
Jul 13, 2019
Messages
4
Reaction score
0
the picture link are dead. no idea what this article said.
 
Initiate Mage
Joined
Jul 26, 2019
Messages
3
Reaction score
1
the picture link are dead. no idea what this article said.

Got all the images back through waybackmachine, they are listed in same order as the guide.


Update:

So after some experimenting i finally came up with a solution that allows both myself and people from outside my network connect to the server using the loopback adapter. The ip configuration suggested by OP didn't work for me but instead setting 0.0.0.0 to loginserver/network.properties and gameserver/network.properties The only one where i apply my static external IP is gameserver/server.properties. Good luck setting up yours :)
 
Last edited:
Initiate Mage
Joined
Jul 13, 2019
Messages
4
Reaction score
0
Got all the images back through waybackmachine, they are listed in same order as the guide.


Update:

So after some experimenting i finally came up with a solution that allows both myself and people from outside my network connect to the server using the loopback adapter. The ip configuration suggested by OP didn't work for me but instead setting 0.0.0.0 to loginserver/network.properties and gameserver/network.properties The only one where i apply my static external IP is gameserver/server.properties. Good luck setting up yours :)
thanks Nullucent, my final configuration used RMI.host as 127.0.0.1, and host was 0.0.0.0, too.
only changed server.properties with static IP just like you.

I think it is the best setting so far.

The other troublesome one is the parameter for gameserver to launch JVM.
Have to edit DEFAULT_JVM_OPTS inside of gameserver.bat,
the G.C. algorithm is case by case.

The most difficult one is the mongodb, the nosql DB is possible to produce duplicated IDs,
and it did often happen when using bank services.
 
Newbie Spellweaver
Joined
Apr 18, 2020
Messages
5
Reaction score
0
I did everything but what do i put in my service.ini file on the client side for my friends to connect to me? whenever i put my ip address there it just says the file is corrupted
 
Back
Top