Jump to content
  • 0

2 servers in 1 IP address with different rates.


pachupappy

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

Me and my friend will have a project soon, and it goes like this

His (Mid rate)
Mine (Super High Rate)
---

I found this tutorial confusing, http://rathena.org/wiki/Multiple_Servers.

is this project possible? if it is, can you guys explain me what and how will I change things?






Thanks in advance rA community.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

Hi pachupappy1234,

 

Simply just run the 2nd server via Terminal within VNC. All you have to do is set up a "trunk2" folder, configure it with different ports for login/char/map and then set it to use a 2nd database.

 

After that, you'd open the Terminal within VNC by right-clicking the background and selecting "Terminal". Type the following commands in Terminal...

 

To compile;

 

cd /root/Desktop/trunk2
./configure
make clean
make sql

 

To start server;

 

cd /root/Desktop/trunk2
./athena-start start

 

To stop server;

 

cd /root/Desktop/trunk2
./athena-start stop

thanks sir ed! i understand it now. my gratitude is yours. (y)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  105
  • Reputation:   67
  • Joined:  04/05/13
  • Last Seen:  

It's very possible. It's just a matter of having one server listen on a different set of ports than the other. I have a primary server and then a test server on the same box using the same IP just with a different port range. Depending on how you do it, the client will have to be configured with a different login server to flip between them.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi pachupappy1234,

 

For your 2nd server, just run the char/map server and have them connect to your pre-existing login server with a new set of server communication user/pass. In your `login` table for your ragnarok SQL database, you need to add ID#2 with gender of 'S' to set up the server communication user/pass for your 2nd server. 

 

Also, change the default ports for the 2nd server's char/map to ones which you do not use; but still use the same login server port as the one in your 1st server.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   6
  • Joined:  11/13/12
  • Last Seen:  

You can also do a 1 login, char & 2 map servers. More info here: http://rathena.org/wiki/Multiple_Servers

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

It's very possible. It's just a matter of having one server listen on a different set of ports than the other. I have a primary server and then a test server on the same box using the same IP just with a different port range. Depending on how you do it, the client will have to be configured with a different login server to flip between them.

thanks for the reply! I appreciate it!

Hi pachupappy1234,

 

For your 2nd server, just run the char/map server and have them connect to your pre-existing login server with a new set of server communication user/pass. In your `login` table for your ragnarok SQL database, you need to add ID#2 with gender of 'S' to set up the server communication user/pass for your 2nd server. 

 

Also, change the default ports for the 2nd server's char/map to ones which you do not use; but still use the same login server port as the one in your 1st server.

hello sir ed,

I want to know what *File* will I change for the rates.

 

thanks for the reply! I appreciate it!

It's very possible. It's just a matter of having one server listen on a different set of ports than the other. I have a primary server and then a test server on the same box using the same IP just with a different port range. Depending on how you do it, the client will have to be configured with a different login server to flip between them.

can you explain to me how things will be done? TIA!

>Hi pachupappy1234,

 

For your 2nd server, just run the char/map server and have them connect to your pre-existing login server with a new set of server communication user/pass. In your `login` table for your ragnarok SQL database, you need to add ID#2 with gender of 'S' to set up the server communication user/pass for your 2nd server. 

 

Also, change the default ports for the 2nd server's char/map to ones which you do not use; but still use the same login server port as the one in your 1st server.

hello sir ed,

I want to know what *File* will I change for the rates.

 

thanks for the reply! I appreciate it!

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi pachupappy1234,

 

It would be the same as if you were configuring an individual server. Just edit the /conf files within your 2nd set of emulator files to change the rates and such for your 2nd server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Just remember that you must change the port of your 2nd emulator from your 1st emulator otherwise one server will not listen to the port which is being used by the other one.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

Hi pachupappy1234,

 

It would be the same as if you were configuring an individual server. Just edit the /conf files within your 2nd set of emulator files to change the rates and such for your 2nd server.

 

thanks sir ed! you really help a lot! :D

Just remember that you must change the port of your 2nd emulator from your 1st emulator otherwise one server will not listen to the port which is being used by the other one.

 

thanks sir patskie! i get it now because of the "PORT" thing! thank you!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

Hi pachupappy1234,

 

It would be the same as if you were configuring an individual server. Just edit the /conf files within your 2nd set of emulator files to change the rates and such for your 2nd server.

 

thanks sir ed! you really help a lot! :D

>Just remember that you must change the port of your 2nd emulator from your 1st emulator otherwise one server will not listen to the port which is being used by the other one.

 

thanks sir patskie! i get it now because of the "PORT" thing! thank you!!!

 

sir patskie / edward,

may I know what will be the 2nd trunk name?

2 trunks in one IP address right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Yeap 2 trunk in one IP address. name them in any format you like

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

Hi pachupappy1234,

 

It would be the same as if you were configuring an individual server. Just edit the /conf files within your 2nd set of emulator files to change the rates and such for your 2nd server.

sir edward, I'll use asurahosting for this one, I just wanna ask how will I start the two servers with your hosting service?

Thanks in advance.

Yeap 2 trunk in one IP address. name them in any format you like

thanks sir patskie, last question, what will I change in clientinfo.xml?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi pachupappy1234,

 

Simply just run the 2nd server via Terminal within VNC. All you have to do is set up a "trunk2" folder, configure it with different ports for login/char/map and then set it to use a 2nd database.

 

After that, you'd open the Terminal within VNC by right-clicking the background and selecting "Terminal". Type the following commands in Terminal...

 

To compile;

cd /root/Desktop/trunk2
./configure
make clean
make sql

 

To start server;

cd /root/Desktop/trunk2
./athena-start start

 

To stop server;

cd /root/Desktop/trunk2
./athena-start stop
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...