|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Jun 2004
Posts: 3
|
Hello,
I'm trying to set up a private server on a friend's network, and can't connect to it. It's a very basic network, but unfortunately I have no control over the way it's set up, because his dad set it up, and is very proud of it . Well, I suppose it does what he wants it to do.It consists of an ADSL modem, connected to a Windows PC running Internet connection sharing with Zone Alarm on it. That PC's connected to a hub, as are all other PC's on the network. All PC's have static IP's in the 192.168.0.xxx range, and have the ICS PC set as their default gateway. The RunUO server will not be on the 'gateway' PC. Do I have a snowball's hope in hell of getting it to work, only allowing people on the local network to connect? The RunUO server starts, but I can't connect to it via UOGateway. It just says that it couldn't connect, please try again later. If I'm wasting my time on this home-made network, please let me know. I have recommended a router, but that gets met with loads of arguments about how every PC would have direct access to the internet, all would have to be secured and monitored, etc, etc, etc...(bangs head on wall). Funnily enough, he already has Norton security on every PC, so I don't know what else he thinks he'd have to secure. Thanks! BetaPete P.S. Here's the serverlist.cs contents: 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 = "upstairs"; 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; } } } |
|
|
|
|
|
#3 (permalink) |
|
Join Date: Jun 2004
Posts: 3
|
That line now reads :
public const string Address="192.168.0.27" Stopped, restarted server. Ran the client (through UOGateway). "unable to connect to Ultima Online. Please try again later." UOGateway's settings are - servername:upstairs IP:192.168.0.27 port:2593 remove encryption no 3rd party Any other ideas? -Pete |
|
|
|
|
|
#5 (permalink) |
|
Join Date: Jun 2004
Posts: 3
|
I think it's got something to do with the Internet connection sharing that's set up - but unfortunately, that's beyond my control.
There's no chance that I'll ever be able to connect to the server from the internet, because of the way this network's set up. I think I'll try a couple of the other emulators, and if they give similar problems, just play on someone else's server! Thanks anyway, Pete |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|