Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 04-06-2004, 11:47 PM   #1 (permalink)
 
Join Date: Mar 2004
Posts: 3
Default Router Problems

Hi,
I am new to RunUO. I have my server running smoothly on this side of my router, my wife's computer and mine can get on the game. However, others cannot join my game. I do see them creating account and trying to log in (i.e., i see their ip addresses in the runuo server window) but as soon as they click on my server name, they immediately are disconnected. I have done the port forwarding on my router (any suggestions you have might be better than what others have given). I have also put in my router's ip address in the serverlist.cs file. Is there something else I am not configuring right? If you can offer any assistance, I would greatly appreciate it. If it is too much info to post maybe you can send me a address for website that teaches this. Thanks again!

Dovolick
Dovolick is offline   Reply With Quote
Old 04-07-2004, 01:50 AM   #2 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

The problem does lie in the ServerList.cs file. You say you added the router's address, was that the WAN address--meaning the Internet side? You can verify the correct address here: www.whatismyip.com
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 04-07-2004, 03:05 AM   #3 (permalink)
Master of the Internet
 
Quantos's Avatar
 
Join Date: Apr 2003
Location: Edmonton, AB
Age: 41
Posts: 6,867
Send a message via ICQ to Quantos Send a message via AIM to Quantos Send a message via MSN to Quantos Send a message via Yahoo to Quantos
Default

Some people using cable or dsl connections will find that the providers are passing them through a mandatory proxy. This will cause the IP to be read incorrectly by whatismyipaddress.com. They will find that no-ip's DUC is more reliable.
__________________
Paranoia is what happens when you finally have all of the facts.
Quantos is offline   Reply With Quote
Old 04-07-2004, 08:20 AM   #4 (permalink)
 
Join Date: Mar 2004
Posts: 3
Default

David, I went to whatsmyip.com and this is what it displays: "Your IP is 12.222.49.60". So I put that in the area you see below. Are there other places I am suppose to put it? Thank you very much for taking the time to respond!

The following is my ServerList.cs file: hen smiley indicates where i put the address listed above.

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.222.49.60";
*
* 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 = "Maddogs Lair";

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;
}
}
}



Thanks again for everyone's help!

Dovolick
Dovolick is offline   Reply With Quote
Old 04-07-2004, 11:45 AM   #5 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Very close, The line you edited is a comment... do the exact same thing about 6 lines down where there is no asterisk.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 04-08-2004, 04:54 PM   #6 (permalink)
 
Join Date: Mar 2004
Posts: 3
Default

David,

Just popping in to say thank you very much for your help, I got it to work last nite! You bring great things to this forum, keep up the good work friend!

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