Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 06-28-2008, 05:51 AM   #1 (permalink)
Newbie
 
animalcrackers's Avatar
 
Join Date: Jun 2008
Posts: 99
Send a message via MSN to animalcrackers
Exclamation How Can I Run 2 Shards?

how can i make it were the same ip and same port can run 2 shards becuase i went to a server the other day and thya had 2 shards up on the pick your world selection how can i do that please help
animalcrackers is offline   Reply With Quote
Old 06-28-2008, 10:44 AM   #2 (permalink)
Forum Expert
 
Vorspire's Avatar
 
Join Date: Jan 2005
Location: Newcastle, United Kingdom
Age: 21
Posts: 2,294
Send a message via ICQ to Vorspire Send a message via MSN to Vorspire Send a message via Skype™ to Vorspire
Default

Modify serverList.cs I think...
__________________

RPK.VORSPIRE.COM - The WoW-UO Cross-Over Shard
Vorspire is offline   Reply With Quote
Old 06-28-2008, 12:08 PM   #3 (permalink)
Forum Expert
 
FingersMcSteal's Avatar
 
Join Date: Mar 2006
Location: North East, England, UK
Posts: 817
Send a message via ICQ to FingersMcSteal Send a message via MSN to FingersMcSteal
Arrow

They have to run on different ports if there on the same machine.

There was an old Serverlist.cs somewhere that allowed you to do this but both version of the servers would need to be altered to write account details into a database (SQL would be the better option for this), so either of the servers could log you in.

Running 2 servers off the same system would also become an issue with performance/lag etc.

Something i looked into a while back but decided against due to the amount of work involved just to have 2 or more shards listed, running one's enough work.
__________________
We can be found on joinUO.com or listUO.com, come try us out.
FingersMcSteal is offline   Reply With Quote
Old 06-30-2008, 03:57 AM   #4 (permalink)
Forum Novice
 
Tumeski's Avatar
 
Join Date: Jul 2003
Location: Finland
Age: 20
Posts: 168
Send a message via MSN to Tumeski
Default

Its physically impossible to run two different servers from one port.... If TCP port 2593 is in use, its in use. This means you cant run 2 servers on same port on single connection. With two WAN connections on one machine its possible

If you really want to do this, id say look over for VMware server. Then just add two network adapters in your machine and fire it up :P that would be the best choice... Having two OS and two adapters... dunno
Tumeski is offline   Reply With Quote
Old 07-01-2008, 05:07 AM   #5 (permalink)
Newbie
 
Jedi Faggus's Avatar
 
Join Date: Feb 2008
Location: Launceston
Age: 16
Posts: 39
Send a message via MSN to Jedi Faggus
Default

i was looking through the custom script release forum for the GM Gateway (Finaly found it) and there was something about shard list and having to shards goin at once. but then again i would never do it on one computer would lag you down unless running quad core lol but then again im sure you will be having problems getting enough people on your one server then having to get more people on 2
__________________
Looking For Staff. Log on Shadowsofagesuo.no-ip.biz with Razor or AIM ME. ShadowsOfAgesUO
Jedi Faggus is offline   Reply With Quote
Old 07-01-2008, 10:07 AM   #6 (permalink)
Lurker
 
Join Date: Oct 2007
Age: 21
Posts: 7
Send a message via Yahoo to moleman
Default help

ok i am running 2 servers on 1 computer one is my dads and one will be mine my dads port is 2593 so i changed my port to 2595 i did that but no one can log in we dont have a router.


From.Insane Owner of Lands Of Insanity
moleman is offline   Reply With Quote
Old 07-01-2008, 01:43 PM   #7 (permalink)
Account Terminated
 
Join Date: Jul 2006
Age: 29
Posts: 240
Default

Quote:
Originally Posted by moleman View Post
ok i am running 2 servers on 1 computer one is my dads and one will be mine my dads port is 2593 so i changed my port to 2595 i did that but no one can log in we dont have a router.


From.Insane Owner of Lands Of Insanity
how are you connected to the internet?? if your using a broadband connection with multiple computers theres a router in there. and you will have to point the incoming traffic to your pc. and easy way to do this is check your interal IP address for your network. I would make static DHCP addresses if your going to run this from your home. usually your default modem/routers IP is 192.168.1.1 or 192.168.1.254 try typing those in your address bar see if something comes up.
Zaphieon is offline   Reply With Quote
Old 07-01-2008, 02:31 PM   #8 (permalink)
Lurker
 
Join Date: Jun 2007
Posts: 4
Default

we r connected to cable internet only have 1 computer no router and on the same computer....i have tryed to open port 2594 but it wont open and have tred port 2595 neither one worked can u help?



From.Insane Owner Of Lands Of Insanity
pagan_302 is offline   Reply With Quote
Old 07-01-2008, 02:31 PM   #9 (permalink)
Newbie
 
animalcrackers's Avatar
 
Join Date: Jun 2008
Posts: 99
Send a message via MSN to animalcrackers
Default

ok ive seen servers with to shards in server list and i wanna do that is it multiple computers or what?
animalcrackers is offline   Reply With Quote
Old 07-01-2008, 02:41 PM   #10 (permalink)
Account Terminated
 
Join Date: Jul 2006
Age: 29
Posts: 240
Default

Quote:
Originally Posted by pagan_302 View Post
we r connected to cable internet only have 1 computer no router and on the same computer....i have tryed to open port 2594 but it wont open and have tred port 2595 neither one worked can u help?



From.Insane Owner Of Lands Of Insanity
ok well how are you trying to get people to connect? are you giving them your external IP? do you have a domain for that pc? use No-IP - Dynamic DNS, Static DNS for Your Dynamic IP which really helps if your not sure about your IP.

need more info given though bud.. HOW are they trying to connect is a good starter.
Zaphieon is offline   Reply With Quote
Old 07-01-2008, 07:29 PM   #11 (permalink)
Newbie
 
animalcrackers's Avatar
 
Join Date: Jun 2008
Posts: 99
Send a message via MSN to animalcrackers
Default

ya i already have a public shard up but now i wanan put 2 shars ons erver list one or pvp other for rp
animalcrackers is offline   Reply With Quote
Old 07-01-2008, 11:35 PM   #12 (permalink)
Account Terminated
 
Join Date: Jul 2006
Age: 29
Posts: 240
Default

if you dig through the script submissions someone wrote a script to run 2 servers at the same time, and the players actually could go through a "gate" and cross between the 2 servers. saw it awhile back.. but you might be interested in that.
Zaphieon is offline   Reply With Quote
Old 07-01-2008, 11:46 PM   #13 (permalink)
Newbie
 
Jedi Faggus's Avatar
 
Join Date: Feb 2008
Location: Launceston
Age: 16
Posts: 39
Send a message via MSN to Jedi Faggus
Default

have a look through the custom script release. i have seen a script in there that does this
__________________
Looking For Staff. Log on Shadowsofagesuo.no-ip.biz with Razor or AIM ME. ShadowsOfAgesUO
Jedi Faggus is offline   Reply With Quote
Old 07-03-2008, 12:17 AM   #14 (permalink)
Lurker
 
Join Date: Jun 2007
Posts: 4
Default help :(

relly you can do that.....if u can give me the link to the script i would very muh thank you....and the ppl that were rying to connect and couldn't used razor and i use razor myself when i log on my admin account and it works just fine....but they dont even show up on the command promp....if u want to ask me for more info u can reach me at denver1993@hotmail.com
pagan_302 is offline   Reply With Quote
Old 07-18-2008, 12:02 AM   #15 (permalink)
Newbie
 
animalcrackers's Avatar
 
Join Date: Jun 2008
Posts: 99
Send a message via MSN to animalcrackers
Thumbs up

ok i found out myself and didnt even custom things thx tho guyz
animalcrackers is offline   Reply With Quote
Old 07-18-2008, 12:22 AM   #16 (permalink)
Forum Novice
 
applepie's Avatar
 
Join Date: Feb 2004
Location: Da RoCK NC
Age: 19
Posts: 141
Send a message via AIM to applepie
Default yoo

Hey AC can u hook me up with that ive been looking for it myself ever since i lost my mr fixit list wich was 2server compatible
__________________
Bout as CruNK as a TiaWana MaMa On CracK!
applepie is offline   Reply With Quote
Old 07-18-2008, 06:20 PM   #17 (permalink)
Newbie
 
animalcrackers's Avatar
 
Join Date: Jun 2008
Posts: 99
Send a message via MSN to animalcrackers
Default

well the way i found out will not allow u to have them on same server list i tryed it and u gota have something that seperates accounts for that to work
animalcrackers is offline   Reply With Quote
Old 07-19-2008, 06:42 PM   #18 (permalink)
Forum Novice
 
applepie's Avatar
 
Join Date: Feb 2004
Location: Da RoCK NC
Age: 19
Posts: 141
Send a message via AIM to applepie
Default weird

weird i figured it out i have both servers running off one server list and the accounts are separate
__________________
Bout as CruNK as a TiaWana MaMa On CracK!
applepie is offline   Reply With Quote
Old 07-20-2008, 10:06 AM   #19 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,654
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

only thing i can think of is either use a seprate location common to both for the accounts files, or else periodically update a 3rd location with updates to the accounts list and then on login and load rather than reading from the indvidual save for that server to read from the 3rd location...

each server would write to their save location, but read from a different location.

this would probably require a core edit, im not sure if the save subsystem in runuo 2.2 is in the core still.
Murzin is offline   Reply With Quote
Old 07-29-2008, 12:24 AM   #20 (permalink)
Lurker
 
Join Date: Oct 2007
Age: 21
Posts: 7
Send a message via Yahoo to moleman
Default help :(

ok so you guys did what to run two servers off the same computer? cuze i been trying to run two servers off the same computer for about 2 or 3 months now and still have not been able to do it if u could tell me a way to do this it would be very much apprected
moleman is offline   Reply With Quote
Old 08-20-2008, 01:47 PM   #21 (permalink)
Newbie
 
Underdog's Avatar
 
Join Date: Dec 2002
Age: 24
Posts: 62
Send a message via ICQ to Underdog Send a message via AIM to Underdog Send a message via Yahoo to Underdog
Default

Open your SocketOptions.cs

Code:
private static IPEndPoint[] m_ListenerEndPoints = new IPEndPoint[] {
			new IPEndPoint( IPAddress.Any, 2593 ), // Default: Listen on port 2593 on all IP addresses
Change the red part to a different port, but only do it on your second shard. Works great for me
__________________
"www.insanitry.com"
Underdog is offline   Reply With Quote
Old 08-20-2008, 03:47 PM   #22 (permalink)
Forum Expert
 
Join Date: Dec 2006
Location: Southern Utah
Posts: 639
Send a message via Yahoo to greywolf79
Default

Do a search for mr fixit 2 shards... It is what I did because of a suggestion to the same problem (I wanted to put a rc1 and an rc2 shard on same pc). I have not run it that way yet (no internet connection on the server pc right now) but the mr fixit multiple shards package allows for 2, 3, or 4 that I remember seeing running all at once. I only plan on doing 2 (and then when 2.0 final comes out I will retire the rc1 shard)... I would be interested in that gate thing though to go between the 2 shards.

GreyWolf.
greywolf79 is offline   Reply With Quote
Old 08-20-2008, 05:36 PM   #23 (permalink)
Account Terminated
 
Join Date: Jul 2008
Location: /dev/urandom
Posts: 88
Default

What you need is basically 1 login server + 2 servers on same box.

ex:

Code:
            try
            {
                IPAddress ipAddr;
            
            if(Resolve("uosrv.uovalor.com", out ipAddr ))
            e.AddServer( "Age of Valor", new IPEndPoint( ipAddr, 1337 ) );        
            
            if(Resolve("tc1.uovalor.com", out ipAddr ))
            e.AddServer( "AoV TC1", new IPEndPoint( ipAddr, 1337 ) );    

            if(Core.Localhost)
            {
            if(Resolve("localhost", out ipAddr ))
            e.AddServer( "Localhost_1337", new IPEndPoint( ipAddr, 1337 ) );                
            }                    
    
            
            }
            catch
            {
                e.Rejected = true;
            }

So you would have two servers running on a different port, but add them to the login server so they only need to know one server, but when they pick the server in the login list then it "redirects" to right shard. OSI actually has a server dedicated to just logins and does exactly this.
ack-sync-request is offline   Reply With Quote
Old 08-20-2008, 06:38 PM   #24 (permalink)
Forum Expert
 
Join Date: Dec 2006
Location: Southern Utah
Posts: 639
Send a message via Yahoo to greywolf79
Default

I will try to get online at home (no solid internet connection at home right now, so I will try but no guarentees) and see if I can post the 2 server fix for this... I have the setup mr fixit used (I deleted the other portions but have the 2 shard solution). It is just 1 file for each shard needs to be edited and then that file replaces the distro file in each shard. It is a fix in the serverlist.cs file that just needs to have the ip/port info edited x2 (one for each shard) and then it just needs to replace the existing one in each shard... If I get online at home I will just edit this post and post the files needed.

GreyWolf.

------- EDIT --------

Found them and was able to connect, at least for a short while. This is just the file set for 2 shards, but by comparing it with the default one you should be able to figure out how to make it for more than 2 shards... Hope it helps.
Attached Files
File Type: zip 2 Servers.zip (9.2 KB, 10 views)

Last edited by greywolf79; 08-21-2008 at 12:39 AM.
greywolf79 is offline   Reply With Quote
Old 08-21-2008, 07:26 AM   #25 (permalink)
Newbie
 
Underdog's Avatar
 
Join Date: Dec 2002
Age: 24
Posts: 62
Send a message via ICQ to Underdog Send a message via AIM to Underdog Send a message via Yahoo to Underdog
Default

A short while? Does that mean it eventually crashed, or you just took it down after awhile?
__________________
"www.insanitry.com"
Underdog is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5