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 06-17-2004, 04:42 PM   #1 (permalink)
Newbie
 
Join Date: Jun 2004
Posts: 81
Exclamation Port 2593

I was just wondering if this port is still valid and needs to be opened if I'm running a router. I have been attempting to open this port on my Belkin Router and I've been getting "Invalid Port" errors. I've called my router tech support and they've preety much said that I need to first make sure that this port is still valid. So if anybody can help me, I'm trying to set up the RunUO server and I'm not getting people to connect. So I attempted to open port 2593 and it's said to be invalid, is it still a valid port? And with all the RunUO updates do I still need this port to be open if I'm running behind a router?
Heftiger is offline   Reply With Quote
Old 06-17-2004, 04:46 PM   #2 (permalink)
Forum Expert
 
Join Date: Nov 2003
Location: Buckhannon, WV
Age: 34
Posts: 409
Send a message via ICQ to iZJokersWild Send a message via Yahoo to iZJokersWild
Default

I am like 90% sure it is still a valid port. I would use No-IP (at www.noip.com) as a host IP. It took care of my port and connection problems fairly easily and it is pretty easy to set up. All you would have ot do is D/L the file, set up an account, name your host, and copy & paste your host into UOGateWay. Then next refresh it shold be good to go.
iZJokersWild is offline   Reply With Quote
Old 06-17-2004, 04:57 PM   #3 (permalink)
Newbie
 
Join Date: Jun 2004
Posts: 81
Default

Hmm, ok so if I use this when I edit my ServerList.cs I change
public const string address =
to MY IP? Or the new web IP that was created.

And in UO gateway, the server IP is MY IP, or that of the new web IP?

My current settings are
public const string Address = "runuo-hef.servegame.com";
And i'm trying to connect to my server through UO gateway using the web IP runuo-hef.servergame.com and It's getting stuck on the first connect screen, ideas?
Heftiger is offline   Reply With Quote
Old 06-17-2004, 05:02 PM   #4 (permalink)
Forum Expert
 
Join Date: Nov 2003
Location: Buckhannon, WV
Age: 34
Posts: 409
Send a message via ICQ to iZJokersWild Send a message via Yahoo to iZJokersWild
Default

You really should not have to change anything in ServerList.cs except your shard's name (to other then Test Center). I am guessing you are not using No-IP, but is your IP & port listed on UOGateWay? That is why I rec. using No-IP, does most of that stupid work for you, and I have not had any trouble with it. Then all you would have to do it put your host name in where your IP is (on UOGateWay). It is a free program and easy to use.
iZJokersWild is offline   Reply With Quote
Old 06-17-2004, 05:06 PM   #5 (permalink)
Newbie
 
Join Date: Jun 2004
Posts: 81
Default

Quote:
Originally Posted by iZJokersWild
You really should not have to change anything in ServerList.cs except your shard's name (to other then Test Center). I am guessing you are not using No-IP, but is your IP & port listed on UOGateWay? That is why I rec. using No-IP, does most of that stupid work for you, and I have not had any trouble with it. Then all you would have to do it put your host name in where your IP is (on UOGateWay). It is a free program and easy to use.
Yes my previous is post is my settings with No-IP. Maybe if you post your serverlist.cs info on here it will help. If you had the time I'd appreciate that.
Heftiger is offline   Reply With Quote
Old 06-17-2004, 05:15 PM   #6 (permalink)
Forum Expert
 
Join Date: Nov 2003
Location: Buckhannon, WV
Age: 34
Posts: 409
Send a message via ICQ to iZJokersWild Send a message via Yahoo to iZJokersWild
Default

Sorry bout that. You still should not have to change the ServerList.cs file, but the web address will be the one that you use. You put the web IP in UOGateway. It generally takes a few minutes for it to load up (when UOGateWay does it's checks on servers), but afterwards should be good to go.
Quote:
public const string Address = "runuo-hef.servegame.com";
And i'm trying to connect to my server through UO gateway using the web IP runuo-hef.servergame.com and It's getting stuck on the first connect screen, ideas?
Did you wait for the Public server list to refresh and the settings to take place?
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 = null;

		public const string ServerName = "Beyond Reality";

		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;
		}
	}
}
That is mine. If you look up above, where it says:
Code:
		/* 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";
		 */
It pretty much tells you what to do. Have you tried that yet? I do not use a router, so could not tell you if that works or not, but would give it a try.
iZJokersWild is offline   Reply With Quote
Old 06-17-2004, 05:17 PM   #7 (permalink)
Forum Expert
 
Join Date: Nov 2003
Location: Buckhannon, WV
Age: 34
Posts: 409
Send a message via ICQ to iZJokersWild Send a message via Yahoo to iZJokersWild
Default

Also, if that does not work, I would try to use the web address, but you really should not have to change much. Again though, I am not running mine through a router. I would make a back-up before you make any changes, just in case.
iZJokersWild is offline   Reply With Quote
Old 06-17-2004, 05:20 PM   #8 (permalink)
Newbie
 
Join Date: Jun 2004
Posts: 81
Default

Ok, i changed to
public const string Address = null;
I've restarted the RunUo server then attempted to connect to the server using UOgateway and using the web IP that No-IP provided me. Still not working. No-IP told me that I needed to wait 5 mins and it's been at least 10 so the DNS should be updated. Are you running behind a router? Maybe that's still my problem.
Heftiger is offline   Reply With Quote
Old 06-17-2004, 05:33 PM   #9 (permalink)
Forum Expert
 
Join Date: Nov 2003
Location: Buckhannon, WV
Age: 34
Posts: 409
Send a message via ICQ to iZJokersWild Send a message via Yahoo to iZJokersWild
Default

No, am not running through a router, that is why I am not fully about to go through everything with you. You have connection through No-IP? Is the box next to your server checked off? I saw some router options in No-IP for routers, have to checked any of them out? They have some stuff for routers under connections tab. I would start with trying to get No-IP connected first. Once that is connected, then work on UOGateway to make sure they have a connection. I would keep server up, in case it does work, you can test it.
iZJokersWild is offline   Reply With Quote
Old 06-17-2004, 05:51 PM   #10 (permalink)
Newbie
 
Join Date: Jun 2004
Posts: 81
Default

Quote:
Originally Posted by iZJokersWild
No, am not running through a router, that is why I am not fully about to go through everything with you. You have connection through No-IP? Is the box next to your server checked off? I saw some router options in No-IP for routers, have to checked any of them out? They have some stuff for routers under connections tab. I would start with trying to get No-IP connected first. Once that is connected, then work on UOGateway to make sure they have a connection. I would keep server up, in case it does work, you can test it.
I'm not sure what you mean by having the box next to my server chcked off. I've checked around and I don't see any router settings on the no-ip website. Although it seems I have remedied my router and I now have the correct port open, but it seems as though others still can't connect to my server.
Heftiger 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