Topic: Run 2 Servers On 1 PC
Run 2 Servers On 1 PC
Run 2 servers (high rate and low rate) in single computer and clients can access both servers with same client and account but with different characters.
Requirements:
1. GS / GSCS has an option for Account and Character Database selection.
2. Hexeditor
3. You already have a working server or you already know how to setup the server.
Database Connectivity
1. Create database for account and in this case lets choose Me_MuOnline, you can restore from the normal muonline database backup.
2. Create database for lowrate server: MuOnline
3. Create database for highrate server: MuOnline2
4. Create and ODBC for MuOnline2.
Server 1 (lowrate)
1. Configure GS/GSCS to use Me_MuOnline for account db and MuOnline for character db.
Server 2 (highrate)
1. Hex EXDB and change all MuOnline to MuOnline2.
2. Hex Dataserver1 and change MuOnline to MuOnline2, just make a copy for the second Dataserver if you will use backup. ( delete dataserver.dat if there is, it will give an error upon starting but you can safely ignore it.)
3. Configure GS/GSCS to use Me_MuOnline for account db and MuOnline2 for character db.
Server Shortcuts(starter) // most of the tricks are here
* Common
1. Run Joinserver, Event Server and Ranking Server as default.
* Server1 (lowrate)
1. Dataserver1 - path to file\dataserver.exe 55960 1
2. Dataserver2 - path to file\dataserver.exe 55962 2
3. Exdb - path to file\exdb.exe WAN_IP
4. Chatserver - path to file\chatserver.exe WAN_IP
5. GS - path to file\gameserver.exe 127.0.0.1 55970 127.0.0.1 55960 55901
6. GSCS - path to file\gameserverCS.exe 127.0.0.1 55970 127.0.0.1 55960 55919
* Server2 (highrate)
1. Dataserver1 - path to file\dataserver.exe 55964 1
2. Dataserver2 - path to file\dataserver.exe 55966 2
3. Exdb - path to file\Exdb.exe 127.0.0.1 55915 //we need to run server2 exdb in other port
4. GS - path to file\gameserver.exe 127.0.0.1 55970 127.0.0.1 55964 55921 127.0.0.1 55966 127.0.0.1 55915 //all in one line.
5. GSCS - path to file\gameserverCS.exe 127.0.0.1 55970 127.0.0.1 55964 55939 127.0.0.1 55966 127.0.0.1 55915 //all in one line.
* Server2 GS/GSCS Color Legends: Green - Joinserver, Blue - Dataserver1, Brown - Gameserver port, Pink - Dataserver2, Orange - Exdb
Connect Server // server lists:
0 "GSL" "WAN_IP" 55901 "SHOW"
19 "GSCSL" "WAN_IP" 55919 "HIDE"
20 "GSH" "WAN_IP" 55921 "SHOW"
39 "GSCSH" "WAN_IP" 55939 "HIDE"
***Note: The chat server cannot run for both servers. In this case it runs only for server1.
Credits:
- phit666