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!

L2J [Guide]Connecting 2 Gameservers To 1 Loginserver Using 2 Pc's In Different Houses

Newbie Spellweaver
Joined
May 8, 2007
Messages
48
Reaction score
0
You can download this tutorial at


Tutorial contents:

This tutorial will explain how to connect 2 gameservers together using 2 computers with different IP's, using the Lineage II Interlude Client (L2J Version)
A router is not used in this tutorial
We will assume the databases are set up for the gameservers and the loginservers on both computers, and you have Navicat installed
The first PC will be used as both the loginserver and one of the two gameservers
The second computer will host the second gameserver, and use the loginserver of the first computer
We will call the computer that will host the loginserver the LOGIN PC
The other computer will be called the NONLOGIN PC
╔══════╗
║STEP 1║
╠══════╩═════════════════╗
║Registering Server Names║
╠═════════════╦══════════╝
║LOGIN PC ONLY║
╚═════════════╝
Open serverfiles, then go to \loginserver\dist\
Run RegisterGameServer.bat
Type clean, then hit enter
Run RegisterGameServer.bat again, and enter the number of the servername you wish to use for your gameserver
Run RegisterGameServer.bat yet again, and enter the number of the servername you wish to use for the NONLOGIN PC gameserver
╔══════╗
║STEP 2║
╠══════╩══════════╗
║Preparing hexid's║
╠═════════════╦═══╝
║LOGIN PC ONLY║
╚═════════════╝
When you are finished STEP 1, you will have 2 files.
hexid(server X).txt
hexid(server Y).txt
X is the first number you entered. (LOGIN PC)
Y is the second number you entered. (NONLOGIN PC)
Each file should be renamed to hexid.txt AFTER being moved to the correct PC. On each PC, there must be a copy of the hexid.txt file in these 2 folders:
\loginserver\dist\ folder of your server files
\gameserver\config\ folder of your server files
Since you cannot name both hexid(server) files to just *hexid.txt* at the same time on one computer, rename the one that belongs on the LOGIN PC first. Then, MOVE the other *hexid(server)* file to the NONLOGIN PC, rename it to hexid.txt then make sure it is in these 2 folders:
\loginserver\dist\ folder of your server files
\gameserver\config\ folder of your server files
╔══════╗
║STEP 3║
╠══════╩══════════════════════╗
║Change server_id's in Navicat║
╠═════════════╦═══════════════╝
║LOGIN PC ONLY║
╚═════════════╝
After completing STEP 1 and STEP 2, you will need to change 2 numbers in Navicat to the correct server numbers. (The ones that you entered in RegisterGameServer.bat in STEP 1)
NOTE:
For some reason, when you register a gameserver (choose it's name with a number), it isn't entered into MySQL (Navicat) correctly.
Open Navicat
Open on the "gameservers" table
Under the "server_id" column, change the first number to the number that you entered in STEP 1 (when you registered the gameservers) and the number BELOW that to the second number you entered in STEP 1
Click the checkmark at the bottom of the screen, then close the table, then close Navicat
╔══════╗
║STEP 4║
╠══════╩══════════╗
║server.properties║
╠═════════════╦═══╝
║LOGIN PC ONLY║
╚═════════════╝
On the LOGIN PC, open server.properties from the \gameserver\dist\config\ folder of your server files
Change the following sections in your file to match the following format:
GameserverHostname=LOGIN PC WAN IP
ExternalHostname=LOGIN PC WAN IP
InternalHostname=127.0.0.1
LoginHost=LOGIN PC WAN IP
RequestServerID = XX
NOTE:
XX must be the FIRST number you entered in STEP 1 (when you registered the gameservers)
╔══════╗
║STEP 5║
╠══════╩═══════════════╗
║loginserver.properties║
╠═════════════╦════════╝
║LOGIN PC ONLY║
╚═════════════╝
On the LOGIN PC, open loginserver.properties from the \loginserver\dist\config\ folder of your server files
Change the following sections in your file to match the following format:
LoginServerHostname=LOGIN PC WAN IP
LoginHostname=LOGIN PC WAN IP
AcceptNewGameServer = True
╔══════╗
║STEP 6║
╠══════╩══════════╗
║server.properties║
╠════════════════╦╝
║NONLOGIN PC ONLY║
╚════════════════╝
On the NONLOGIN PC, open server.properties from the \gameserver\dist\config\ folder of your server files
Change the following sections in your file to match the following format:
GameserverHostname=0.0.0.0
ExternalHostname=NONLOGIN PC WAN IP
InternalHostname=127.0.0.1
LoginHost=LOGIN PC WAN IP
RequestServerID = YY
NOTE:
YY must be the SECOND number you entered in STEP 1 (when you registered the gameservers)
╔══════╗
║STEP 7║
╠══════╣
║l2.ini║
╠══════╩═══════════════╗
║NONLOGIN PC + LOGIN PC║
╚══════════════════════╝
In the patch or client that you distribute, you need a decrypting tool such as L2FileEdit.exe that allows you to edit your l2.ini file
l2.ini can be found in the \system\ folder of your client files
Change the following sections in your file to match the following format:
Port=2106
ServerAddr=LOGIN PC WAN IP
After this is complete, you have to encrypt the file again for it to work properly
╔══════╗
║STEP 8║
╠══════╣
║Enjoy!║
╚══════╝
 
Back
Top