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, 06:18 AM   #1 (permalink)
 
Join Date: Jun 2004
Posts: 3
Question Newbie requiring networking help

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;
}
}
}
BetaPete is offline   Reply With Quote
Old 06-17-2004, 11:33 AM   #2 (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

public const string Address = null;

Shouldn't be null, should be the local ip of the server...
Phantom is offline   Reply With Quote
Old 06-17-2004, 11:58 AM   #3 (permalink)
 
Join Date: Jun 2004
Posts: 3
Default re: Newbie requiring networking help

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
BetaPete is offline   Reply With Quote
Old 06-17-2004, 12:03 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

My guess is there is something wrong/whacked with the setup.

Your just better off, logging in from the internet.
Phantom is offline   Reply With Quote
Old 06-17-2004, 12:14 PM   #5 (permalink)
 
Join Date: Jun 2004
Posts: 3
Default

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
BetaPete 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