running different servers on the same computer.

Guides for osRose and osiRose (compilation / setup)...

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Re: running different servers on the same computer.

Postby wtfux on Mon May 12, 2008 2:24 pm

What u mean? You can force Rose to connect to a port using _port. And the server port is set in the .conf files.
You dont need any hex editing. I just listed the parameters.
No.sig
wtfux
Pomic
Pomic
 
Posts: 130
Joined: Sun Apr 13, 2008 2:35 pm

Re: running different servers on the same computer.

Postby PurpleYouko on Mon May 12, 2008 2:36 pm

Like i said i have never even thought about messing with connection ports with rose before.

The .conf files are only going to control the server side of the thing.
how do you plan to change the initial login packet that the client sends to port 29000?

One thing i have experimented with and it is ports in winsok and i can tell you from experience that you can't have more than one socket open and listening on the same port for an incoming packet.

After th einitial connection request you may be able to redirect it to wherever you like but that would mean you need a gateway of some sort to redirect your initial incoming login requests, hence my DNS suggestion.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: running different servers on the same computer.

Postby wtfux on Mon May 12, 2008 2:43 pm

PurpleYouko wrote:The .conf files are only going to control the server side of the thing.
how do you plan to change the initial login packet that the client sends to port 29000?


Already said.
TRose.exe @TRIGGER_SOFT@ _server your.ip _port 1337

Image


Sure, you can hex edit TRose.exe, too and change 29000 to XXXXX. But I think the argument thing is easier.
No.sig
wtfux
Pomic
Pomic
 
Posts: 130
Joined: Sun Apr 13, 2008 2:35 pm

Re: running different servers on the same computer.

Postby PurpleYouko on Mon May 12, 2008 2:45 pm

Oh. that's what you meant by _port option
Thanks for explaining.
It makes sense now. :D
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: running different servers on the same computer.

Postby Maxxon on Mon May 12, 2008 10:11 pm

since you only supply the ip number of the server it should connect to on the command line i would say yes. but i havent had a close look at that yet.
Image
an anymous comment on a program called reloader:
what if a fatal error happens, will it restart it?
User avatar
Maxxon
Hawker's pet
Hawker's pet
 
Posts: 1305
Joined: Sat Nov 10, 2007 12:42 pm

Re: running different servers on the same computer.

Postby hlajr on Mon Feb 09, 2015 10:43 pm

:lol:

Not a dumb question anymore as this one produces a further look into OSRose's intricacy and produces a solution.

Though I just tested it now with same OSRose but of course diffrent version (rev8.0 and DropRev - as recommended by PY) I have now started both server in just one computer and two client for each server (v162 for rev8.0 and v254 for DropRev), though each server have a separate database.

Indeed the _PORT option does work - I just edit the port entry on the three conf files (I've used 27xxx for the rev8.0 and left the 29xxx for the DropRev) and launch the v162 client with a batch file with the _port 27xxx, and launching the v254 client for DropRev as is, without using the _port option.

At least, I can now run the two server side by side, unlike before where I have to close the other one before I can launch the other as running the same EXE (of the 3 servers, LoginServer, CharServer and WorldServer) causes the second one not to be launched successfully.

Thanks for the courage in asking such not so dumb question after all! :lol: :lol: :lol:
Doing the right thing is the right thing to do!
User avatar
hlajr
Smoulie
Smoulie
 
Posts: 60
Joined: Wed Jul 23, 2014 11:21 am

Previous

Return to osRose / osiRose Guides

Who is online

Users browsing this forum: No registered users and 4 guests