Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 08-07-2008, 10:09 AM   #1 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default Patching Issues

After finally portforwading my router(s), people should be able to connect to my server. but it crashes for them. A friend tried to connect and crash. I believe the problem is the lvl of patch we have.

Me: 5.0.8.1 patch 40
friend: 6.0.9.2 patch 70

Mines gives me "error during session".

is there a way to patch my furthur? or to "unpatch" his back to mine? There was a thread with this issues and they said to "copy my patch to his", but i have no idea what that means and no one responds to that thread.

Latly, Assuming this gets solved and We are both patched to the same thing. What IP does he put into razor to connect to me?
My server gives the ip 10.5.1.2
whatsmyip.com = 64.231.255.239
canyouseeme.org = 2593 is open
Mockhazzard is offline   Reply With Quote
Old 08-07-2008, 11:08 AM   #2 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

You should try to patch to 6.0.9.2 too; look where your files are installed (standard in c:\program files\ea games etc) and look for a sub-directory \Patch. If there are files in it, delete them and restart patching. Is this the same machine on which your server is running? If that's true then your server will have the latest patch too (client and server need the same patch level, as do clients that will connect remotely). Also, you need to check 'Patch client encryption' in razor

The IP number that you need to type in the drop-down box: Locally: 127.0.0.1 or your local LAN IP address (check with CommandPrompt>IPCONFIG/all)(10.5.1.2?). Remote: warriorshaven.servegame.com. You also need to put the external IP (warriorshaven.servegame.com) number into your Scripts\Misc\ServerList.cs.

Code:
using System;
using System.Net;
using System.Net.Sockets;
using Server;
using Server.Network;

namespace Server.Misc
{
	public class ServerList
	{
		/* Address:
		 * 
		 * The default setting, a value of 'null', will attempt to detect your IP address automatically:
		 * private const string Address = null;
		 * 
		 * This detection, however, does not work for servers behind routers. If you're running behind a router, put in your IP:
		 * private const string Address = "12.34.56.78";
		 * 
		 * If you need to resolve a DNS host name, you can do that too:
		 * private const string Address = "shard.host.com";
		 */

		public const string Address = "warriorshaven.servegame.com";


		public const string ServerName = "Warriors Haven";

		public static void Initialize()
		{
			Listener.Port = 2593;

			EventSink.ServerList += new ServerListEventHandler( EventSink_ServerList );
		}

		public static void EventSink_ServerList( ServerListEventArgs e )
		{
			try
			{
				IPAddress ipAddr;

				if ( Resolve( Address != null && !IsLocalMachine( e.State ) ? Address : Dns.GetHostName(), out ipAddr ) )
					e.AddServer( ServerName, new IPEndPoint( ipAddr, Listener.Port ) );
				else
					e.Rejected = true;
			}
			catch
			{
				e.Rejected = true;
			}
		}

		public static bool Resolve( string addr, out IPAddress outValue )
		{
			try
			{
				outValue = IPAddress.Parse( addr );
				return true;
			}
			catch
			{
				try
				{
					IPHostEntry iphe = Dns.Resolve( addr );

					if ( iphe.AddressList.Length > 0 )
					{
						outValue = iphe.AddressList[iphe.AddressList.Length - 1];
						return true;
					}
				}
				catch
				{
				}
			}

			outValue = IPAddress.None;
			return false;
		}

		private static bool IsLocalMachine( NetState state )
		{
			Socket sock = state.Socket;

			IPAddress theirAddress = ((IPEndPoint)sock.RemoteEndPoint).Address;

			if ( IPAddress.IsLoopback( theirAddress ) )
				return true;

			bool contains = false;
			IPHostEntry iphe = Dns.Resolve( Dns.GetHostName() );

			for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i )
				contains = theirAddress.Equals( iphe.AddressList[i] );

			return contains;
		}
	}
}

Last edited by Melchior; 08-07-2008 at 11:24 AM.
Melchior is offline   Reply With Quote
Old 08-07-2008, 11:26 AM   #3 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

i tried eracing my patches and redoing it but no success. Can i assume i can just copy my friends patch folder and use it?

and also, when i start my server it shows ip 127 0 0 1 and 10 5 1 2

in ipconfig it shows 10 5 1 1. what do others use to connect to me. thanks.
Mockhazzard is offline   Reply With Quote
Old 08-07-2008, 11:37 AM   #4 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

You can try but I don't think it will work. Best thing to do is to completely reinstall the client after completely removing the current client software, or;

If you friend has a laptop, and can/will come to you, and you get him on your lan, and he shares the directory in which he has installed the client, then you can copy his software over your version and you will have the same version.

Like I said in my previous post, when connection remotely to your server, your friend should use your external IP number in Razor (warriorshaven.servegame.com) and check the 'Patch client encryption'.
Melchior is offline   Reply With Quote
Old 08-07-2008, 11:47 AM   #5 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

im not sure what the difference is. weither he sends me his patch folder and i use it, or if he connects to my lan and i then get it. when you say share you mean both at the same time?

I have tried uninstalling completely, and installing it again a few times. no success.
Mockhazzard is offline   Reply With Quote
Old 08-07-2008, 11:53 AM   #6 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

Like I said, you can try copying only your friends /Patch directory, but when he is properly patched, then it will be empty, so there will be nothing to copy. If he connects his pc to your LAN and takes the properties of the directory where the client software is installed, then he can set the property 'Shared' and you can connect to that share with your PC. Then copy the complete contends of his client software over your client.

If this is too complicated, then he can perhaps burn a DVD with his client software and you can then copy that to your installation.
Melchior is offline   Reply With Quote
Old 08-07-2008, 11:59 AM   #7 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

do you mean just copy his entire ultima online folder? i wasn't sure if that was possible.
Mockhazzard is offline   Reply With Quote
Old 08-07-2008, 12:02 PM   #8 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

Yes; all of it. I have six installations side-by-side on my (LAN) server so I can connect to any type of server.
Melchior is offline   Reply With Quote
Old 08-07-2008, 12:13 PM   #9 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

Thanks. it will be a few days until i go over there and get it. I always thought you cant just copy a games folder over because of registry files and other stuff. if its as simple as that then good. would it be better to uninstall the ultima i have now first? i assume so correct?
Mockhazzard is offline   Reply With Quote
Old 08-07-2008, 12:28 PM   #10 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

There are only a few registry entries for Ultima Online; the only thing you need to take care of is the Scripts\Misc\DataPath.cs (contains the path to the client if no registry available) and Razor will not find it automatically, but you can simply browse and point when you start Razor. It would be best if you installed it in the same location as your current client (that is where your RunUO server expects it, as well as Razor. Removing the current version makes no difference; it will be over-written.

Did you ever use UOGateway? If so, then there will be a sub-directory named 'uog' in your client; this will also interfere with patching. (you can safely delete it, (and clear the \patch sub-directory again) and retry patching).
Melchior is offline   Reply With Quote
Old 08-07-2008, 12:43 PM   #11 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

no i dont use gateway. i use razor. after i set up patching my maps with friends i will be using connectuo. ill look out for that.

are you saying to get his folder, then erase the patch files and repatch? Wouldn't that ruin it?
Mockhazzard is offline   Reply With Quote
Old 08-07-2008, 12:50 PM   #12 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

No, that not what I meant; If you had ever used UOGateway, you could try that fix before you copy your friend's files. As it is, forget about it.

Btw: Did you update your ServerList.cs; if you do, maybe your friend can connect. It will not be perfect (different versions) but perhaps you can establish the fact that he can connect. He should check the 'Patch client encryption' in Razor.
Melchior is offline   Reply With Quote
Old 08-07-2008, 12:57 PM   #13 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

the only changes to serverlist is my name and my ip. i assume if i copy his files ill have to change it again.
Mockhazzard is offline   Reply With Quote
Old 08-07-2008, 01:03 PM   #14 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

No, because you are going to copy only his client software. Your RunUO server is installed in another place I assume.

The IP in your ServerList.cs form they other thread contained '127.0.0.1' where your external IP (warriorshaven.servegame.com) is expected, that's why I reposted it here earlier.
Melchior is offline   Reply With Quote
Old 08-07-2008, 01:17 PM   #15 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

oh right right. ya i changed it.
Mockhazzard is offline   Reply With Quote
Old 08-13-2008, 05:59 PM   #16 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

UPDATE. well not working yet.

basicaly. no matter where i am, i can just go to no-ip.com and make a dns name. And that is what i put into serverlist. currently im at my friends place and im using justinhouse@servegame.com.

do we both use that name in razor as well?

We did what was suggested here, i copied his game files and we both were then at 6.0.x.x. we also correctly port forwarded his router. we tried again and now were both getting encrypted client detected.... disconnecting. by reading other forums i found out this is because razor apperently cant decrypt past a certain patch level. So we tried both reinstalling and doing it without any patch. Now i dont see anything when he tries to log in (i see nothing in the sever window).

suggestions? i am still unable to patch past 5.0.4c patch25 on my own.
Mockhazzard is offline   Reply With Quote
Old 08-14-2008, 02:42 AM   #17 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

You must try to work from a solid foundation:

- (Re)install RunUO 2.0 RC2
- Make your friend patch to 6.0.9.2
- If you can't patch to that version, copy his files after he has patched.
- Download the latest Razor.

From your home location, put your latest DNS name into ServerList.cs and make sure port forwarding works.
When you, at home, run Razor, put in your LAN (Private) IP number (10.5.1.2?, or 127.0.0.1) If you are not sure, use Command Prompt>IPCONFIG/ALL to get your LAN IP number). Your friend needs to enter your DNS name (Public IP number) into Razor. Both need to check 'Patch client encryption' in Razor

Last edited by Melchior; 08-14-2008 at 02:34 PM.
Melchior is offline   Reply With Quote
Old 08-14-2008, 12:58 PM   #18 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

Ok. will try this in an hour or so. stay tuned...
Mockhazzard is offline   Reply With Quote
Old 08-14-2008, 01:53 PM   #19 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

so im getting a hue error when compiling runuo 2.0 with vista. I saw on other forums that i need to use tortoise svn, but i have no clue what that is or how to use it. The forum explains kinda how to use it but its quite technical.

my error - http://img254.imageshack.us/img254/5795/76538321ln9.jpg
Mockhazzard is offline   Reply With Quote
Old 08-14-2008, 02:24 PM   #20 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

The only thing to do is to edit your \Scripts\Misc\ServerList.cs and put in your public IP number or DNS name, like:

public static readonly string Address = "shard.servegame.com";

Btw: What language is that in the picture (polish?)

Last edited by Melchior; 08-14-2008 at 02:27 PM.
Melchior is offline   Reply With Quote
Old 08-15-2008, 09:51 AM   #21 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

THANKS. i am now able to connect to my own shard. goodie.

now i just need my bud to give it a try. feel free to try and join. ill leave it up for a while. ip is 10.5.1.4
Mockhazzard is offline   Reply With Quote
Old 08-16-2008, 12:39 PM   #22 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

Quote:
From your home location, put your latest DNS name into ServerList.cs and make sure port forwarding works.
When you, at home, run Razor, put in your LAN (Private) IP number (10.5.1.2?, or 127.0.0.1) If you are not sure, use Command Prompt>IPCONFIG/ALL to get your LAN IP number). Your friend needs to enter your DNS name (Public IP number) into Razor. Both need to check 'Patch client encryption' in Razor
10.5.1.4 is a private IP number; you should publish your public IP number or DNS name for anyone to test.
Melchior is offline   Reply With Quote
Old 08-16-2008, 12:42 PM   #23 (permalink)
Newbie
 
Join Date: Jul 2008
Posts: 61
Default

done. please test it. i used craigc.servegame.com as the dns name.
Mockhazzard is offline   Reply With Quote
Old 08-17-2008, 12:54 PM   #24 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 272
Default

Either port 2593 is still blocking, or there are other firewall-rules in place.
Melchior 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