Setting up a server with a static IP

Joined
Feb 2, 2012
Messages
681
Reaction score
101
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:
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
 
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 :(
 
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
 
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.
 
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:
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.
 
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