QUOTE (ArteGordon @ July 21, 2006 09:02 am) |
check the firewall on your server machine and make sure that you are allowing the default RunUO port of 2593. If you are using a router, you will also need to forward that port to your server machine. You can check the port by going to http://www.whatsmyip.org/ and running the port scanner to see if your server port is accessible to the outside. Then make sure that you have properly added your public server address to serverlist.cs Also make sure that he is using Uogateway or Razor to start the client so that encryption is removed. |
QUOTE (Crystal Jem @ July 21, 2006 09:28 am) | ||
the web site says port closed. how do i open it? |
QUOTE (ArteGordon @ July 21, 2006 01:33 pm) | ||||
do you have your server running? If so, then you should check your firewall settings. Open the control panel and look for Windows Firewall. If you cant find it there, then open the Control Panel->Network Connections Right click on your network connection to the outside and open the Properties. Advanced->Settings->Exceptions Then you can add the RunUO.exe server to the list of allowed programs. |
QUOTE |
the sever is and wes on when i checked the port. |
QUOTE (ArteGordon @ July 21, 2006 01:52 pm) | ||
are you using a router? If so then you will have to configure it to allow that port to be forwarded to your server machine.
I dont understand what you are saying here. |
QUOTE (Crystal Jem @ July 21, 2006 01:35 pm) | ||||
Sorry typo's get alot more when i have a 1 yr old that didn't sleep that well last night. I was trying ot just tell you the sever is up and running so when i chacked the port it should have connecting it wasn't a no connect from not haveing the sever turned on. |
QUOTE (ArteGordon @ July 21, 2006 01:33 pm) | ||||
do you have your server running? If so, then you should check your firewall settings. Open the control panel and look for Windows Firewall. If you cant find it there, then open the Control Panel->Network Connections Right click on your network connection to the outside and open the Properties. Advanced->Settings->Exceptions Then you can add the RunUO.exe server to the list of allowed programs. |
QUOTE (ArteGordon @ July 21, 2006 10:12 pm) |
post your serverlist.cs What does the server console list as the addresses that it is listening on? |
QUOTE (ArteGordon @ August 07, 2006 01:49 pm) |
Scripts/Misc/ServerList.cs You will be able to see the actual addresses and ports being monitored by the server by looking at what is displayed in the console window for the server when you start it up. |
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 static readonly string Address = null; public const string ServerName = "RunUO TC"; 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 ) { if ( IPAddress.TryParse( addr, out outValue ) ) return true; try { IPHostEntry iphe = Dns.GetHostEntry( 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.GetHostEntry( Dns.GetHostName() ); for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i ) contains = theirAddress.Equals( iphe.AddressList[i] ); return contains; } } } |
CODE |
public static readonly string Address = null; |
CODE |
public static readonly string Address = "whatever.the.name.of.your.host.is"; |