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 05-14-2006, 05:31 PM   #1 (permalink)
 
Join Date: Nov 2004
Age: 22
Posts: 9
Default Others cant connect

I know this topic is old, moldy, and worn out (ive searched the forums and read all the topics on it), but i cant seem to get this to work. I cant get others to be able to connect to my test server, though i can connect to it myself. Ive enabled port forwarding on my router, turned off my firewall, put my static ip in serverlist.cs, and i dont know what else to do. I have DSL through Bellsouth using a Westell Wirespeed model 2200 modem. The modem hooks to a basic network hub then directly to my computer. port forwarding is enabled for port 2593, and here is my serverlist file

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 = "70.145.22.254";

		public const string ServerName = "Matts Test Server";

		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;
		}
	}
}
any help or suggestions would be Greatly appreciated. thanks in advance
Lirith is offline   Reply With Quote
Old 05-14-2006, 05:35 PM   #2 (permalink)
RunUO Forum Moderator
 
daat99's Avatar
 
Join Date: Dec 2004
Location: Israel
Age: 27
Posts: 8,163
Send a message via ICQ to daat99 Send a message via AIM to daat99
Default

Quote:
Originally Posted by rules
*Use the forums properly; utilizing the topic field correctly is a must... posts that are started with URGENT or HELP ME or I CANT FIGURE THIS OUT (or similar things) will be deleted.
*If your post should get locked, opening a new topic will result in being banned.
*Being a member of RunUO.com is a privilege. This privilege may be withdrawn at any time by any of the RunUO.com staff should they find you breaking these simple rules.
If you want this thread unlocked than send me a pm with an apropriate name and a link to this thread.
__________________
I always try to help
Sometimes, I don't know how....

My Web Page
Forum Rules
-------------------------------------------------------------
Extensive OWLTR System | Token System | World Teleporters
-------------------------------------------------------------
daat99 is offline   Reply With Quote
Old 05-15-2006, 04:06 PM   #3 (permalink)
 
Join Date: Nov 2004
Age: 22
Posts: 9
Default

thanks daat99, sorry about that
Lirith is offline   Reply With Quote
Old 05-15-2006, 04:12 PM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

If people can't connect, it means you still need to port forward, the reason you can connect most likely is because its on the same computer.
Phantom is offline   Reply With Quote
Old 05-15-2006, 04:35 PM   #5 (permalink)
 
Join Date: Nov 2004
Age: 22
Posts: 9
Default

i have set port forwarding, even had Bellsouth Tech support walk me through it, but it still doesnt work for some reason. i can post snapshots of the pages if youd like.
Lirith is offline   Reply With Quote
Old 05-15-2006, 04:46 PM   #6 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Lirith
i have set port forwarding, even had Bellsouth Tech support walk me through it, but it still doesnt work for some reason. i can post snapshots of the pages if youd like.
Did you port forward to the correct ip...
Phantom is offline   Reply With Quote
Old 05-15-2006, 04:50 PM   #7 (permalink)
 
Join Date: Nov 2004
Age: 22
Posts: 9
Default

yes, its forwarding to my ip.
Lirith is offline   Reply With Quote
Old 05-15-2006, 08:54 PM   #8 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Lirith
yes, its forwarding to my ip.
Are you sure, why don't you give us a screenshot, then do an "ipconfig" on the server machine and post that.
Phantom is offline   Reply With Quote
Old 05-15-2006, 10:28 PM   #9 (permalink)
 
Join Date: Nov 2004
Age: 22
Posts: 9
Default



Last edited by Lirith; 05-15-2006 at 10:46 PM.
Lirith is offline   Reply With Quote
Old 05-15-2006, 10:47 PM   #10 (permalink)
 
Join Date: Nov 2004
Age: 22
Posts: 9
Default

Better? the url brings up full size
Lirith is offline   Reply With Quote
Old 05-15-2006, 11:13 PM   #11 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

You need to post the screen shot of your port foward, that shows which ip its being forward to.
Phantom is offline   Reply With Quote
Old 05-16-2006, 12:41 AM   #12 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

Is your external IP static?

Have you tried using Mr. FixIt's serverlist?
__________________
Thistle is offline   Reply With Quote
Old 05-16-2006, 08:06 AM   #13 (permalink)
Forum Expert
 
Join Date: Oct 2002
Posts: 1,126
Default

Do NETBIOS names work for your router? What IP address does it think is assigned to "MattsComp"?
Aenima is offline   Reply With Quote
Old 05-16-2006, 05:13 PM   #14 (permalink)
 
Join Date: Nov 2004
Age: 22
Posts: 9
Default

the white screenshot displays the port forwarding, click it to bring up a bigger image of it for details. the ip for the modem, which i assume is the external ip, is static, yes. honestly, i dont know anything about NETBIOS names so i dont know if they work for my router or not. the computer is operating with ip 192.168.1.97, the router has a static ip of 70.145.22.254 (which is the one in the serverlist script). ive even tried using ip passthrough which assigned this computer directly to the same ip as the router, to no result. If it would be easier to contact me, my yahoo messenger nickname is Gareth_Lore and my msn is Gareth_Lore@hotmail.com so i can be contacted on either messenger program.
Lirith 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