|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Mar 2004
Posts: 3
|
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 |
|
|
|
|
|
#2 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
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 |
|
|
|
|
|
#3 (permalink) |
|
Master of the Internet
|
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. |
|
|
|
|
|
#4 (permalink) |
|
Join Date: Mar 2004
Posts: 3
|
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 |
|
|
|
|
|
#5 (permalink) |
|
Moderate
Join Date: Nov 2002
Location: USA
Posts: 6,598
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|