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!

[TUTORIAL] Run more than 1 server on the same machine

Status
Not open for further replies.
Initiate Mage
Joined
Dec 28, 2009
Messages
14
Reaction score
1
Since a lot of people have requested that feature and i know how to do it, i am making this tutorial, this tutorial is NOT noob friendly, because it need to edit some things via ASM (explained in the tutorial) and change some data in a DLL and compile it.

First of all, i will explain why when you run 2 matchservers in the same PC one of them gets Agent Error, the MatchServer use two ports (only one of those are easily configurable, the TCP Port), one is the 6000 and the other is the port 7777.

The port 6000 are used to recv and send normal packets like the login packet, char list packet, etc..., but the 7777 is a UDP port, is used by the client to receive some information about the peers, when you run another server, you only change the TCP port but not the UDP one, so the client cant get the peer information from the 2nd server because its owned by the first one.

To avoid that problem we need to make two changes, one on the client side part and the other in the server part.

Server Part:

Open up the MatchServer.exe in ollydbg, wait until the analysis has been finished and do this steps.

  • Right click in the CPU view ( where all the ASM code is shown )
  • Select Search For -> All Constant
  • A new dialog will apear, with 3 text boxes, in the 2nd box (the signed one) put 7777 and click ok.
  • You now will be in the results window, you will see two PUSH 1E61, double click in the first one.
  • You now will be in the magical line, double click on it to modify the value to PUSH ThePort, be careful because its a hexadecimal number ( 1E61 = 7777 ).
  • Save that number because you will need it later
  • Do the same for all of your servers but remember to use a different port on each one.
  • You are done.
Client Part:

I have attached to the post a example DLL project, download and open it and read the comments.

You also need to change the IP to a different IP in your 2nd server at the ServerStatus table, you cant have the same ip for the two servers in the serverstatus table-

Truth Vere Very Good Thanks What if you have Long Lag Clan War Dejare Only if not to have both! Thanks :thumbup1:

Español: La Verdad Muy Bueno Gracias Vere Que Tal si Tiene Mucho Lag Dejare Clan War Solo si no dejare los Dos! Gracias :thumbup1:
 
Status
Not open for further replies.
Back
Top