Second Server or Test Server

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Ninja
Posts: 48
Joined: Fri Jul 10, 2009 6:54 pm

Second Server or Test Server

Post by Ninja »

Hi.

I have a live server and I want to create a second server for testing purposes only. The server will be GM Only.
Also I want to login from the same IP, 2 different gameservers (Bartz - Sieghard) and to have 2 different DBs.
If this is possible can somebody please tell me how can I do that?

Thanks.
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: Second Server or Test Server

Post by macdonald12 »

Just register your 2nd gameserver on the loginserver, on an available slot. Pretty much the same you had to do for registering your other server.

As for the database, just create the new one with a different name.
Ninja
Posts: 48
Joined: Fri Jul 10, 2009 6:54 pm

Re: Second Server or Test Server

Post by Ninja »

I copy the DB I have in my live server to another DB with different name. Then I registered a new gameserver and saved the hex id into the 2nd gameserver (test). I edit the requestedserverid in server.properties to 2 and I run the gameserver.

Is not working. :(
FATAL: Failed to open server socket. Reason: Address already in use: bind
Damn! Registration failed: Reason Wrong hex id.

I did something wrong?
kotk
Posts: 99
Joined: Wed Jan 04, 2006 12:51 am

Re: Second Server or Test Server

Post by kotk »

Did you change the gameserver port in the 2nd servers configs?
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Second Server or Test Server

Post by JMD »

7778 or something else on your second server and you are done.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Second Server or Test Server

Post by jurchiks »

not just port, you need to change the GS server.properties file from
# Database URL
# URL = jdbc:mysql://localhost/l2jdb (default)
# URL = jdbc:hsqldb:hsql://localhost/l2jdb
# URL = jdbc:sqlserver://localhost/database = l2jdb/user = sa/password =
URL = jdbc:mysql://localhost/l2jdb
to
URL = jdbc:mysql://localhost/YOURDATABASENAMEHERE
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Post Reply