|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Mar 2008
Posts: 14
|
i have tried everything im at a dead end...my computer is not behind a firewall or router...i tested the port and it works...im using runuo rc2 2.0...running windows xp and i setup the serverlist file exactly how it says in the guide AND i tryed the dynamic dns server name....nobody can connect with the internet to my server but computers on my network can connect with the network ip....ive tried every client version still no connection over the internet...anyone bold enough to figure this one out? here my serverlist file
using System; using System.IO; using System.Net; using System.Net.Sockets; using Server; using Server.Network; namespace Server.Misc { public class ServerList { /* * The default setting for Address, a value of 'null', will use your local IP address. If all of your local IP addresses * are private network addresses and AutoDetect is 'true' then RunUO will attempt to discover your public IP address * for you automatically. * * If you do not plan on allowing clients outside of your LAN to connect, you can set AutoDetect to 'false' and leave * Address set to 'null'. * * If your public IP address cannot be determined, you must change the value of Address to your public IP address * manually to allow clients outside of your LAN to connect to your server. Address can be either an IP address or * a hostname that will be resolved when RunUO starts. * * If you want players outside your LAN to be able to connect to your server and you are behind a router, you must also * forward TCP port 2593 to your private IP address. The procedure for doing this varies by manufacturer but generally * involves configuration of the router through your web browser. * * ServerList will direct connecting clients depending on both the address they are connecting from and the address and * port they are connecting to. If it is determined that both ends of a connection are private IP addresses, ServerList * will direct the client to the local private IP address. If a client is connecting to a local public IP address, they * will be directed to whichever address and port they initially connected to. This allows multihomed servers to function * properly and fully supports listening on multiple ports. If a client with a public IP address is connecting to a * locally private address, the server will direct the client to either the AutoDetected IP address or the manually entered * IP address or hostname, whichever is applicable. Loopback clients will be directed to loopback. * * If you would like to change the default port RunUO listens on, you can do so by modifying the 'Listener.Port' assignment * found below. If you would like to listen on additional ports (i.e. 22, 23, 80, for clients behind highly restrictive egress * firewalls) you can do so by modifying the file SocketOptions.cs found in this directory. * * RunUO currently has no provision to bind on specific interfaces. If you need to run multiple instances of RunUO, you must * bind the listener to a unique port. */ public static readonly string Address = "76.120.161.181"; public static readonly string ServerName = "RunUO TC"; public static readonly bool AutoDetect = true; public static void Initialize() { Listener.Port = 2593; if ( Address == null ) { if ( AutoDetect ) AutoDetection(); } else { Resolve( Address, out m_PublicAddress ); } EventSink.ServerList += new ServerListEventHandler( EventSink_ServerList ); } private static IPAddress m_PublicAddress; private static void EventSink_ServerList( ServerListEventArgs e ) { try { NetState ns = e.State; Socket s = ns.Socket; IPEndPoint ipep = (IPEndPoint)s.LocalEndPoint; IPAddress localAddress = ipep.Address; int localPort = ipep.Port; if ( IsPrivateNetwork( localAddress ) ) { ipep = (IPEndPoint)s.RemoteEndPoint; if ( !IsPrivateNetwork( ipep.Address ) && m_PublicAddress != null ) localAddress = m_PublicAddress; } e.AddServer( ServerName, new IPEndPoint( localAddress, localPort ) ); } catch { e.Rejected = true; } } private static void AutoDetection() { if ( !HasPublicIPAddress() ) { Console.Write( "ServerList: Auto-detecting public IP address..." ); m_PublicAddress = FindPublicAddress(); if ( m_PublicAddress != null ) Console.WriteLine( "done ({0})", m_PublicAddress.ToString() ); else Console.WriteLine( "failed" ); } } private static void Resolve( string addr, out IPAddress outValue ) { if ( IPAddress.TryParse( addr, out outValue ) ) return; try { IPHostEntry iphe = Dns.GetHostEntry( addr ); if ( iphe.AddressList.Length > 0 ) outValue = iphe.AddressList[iphe.AddressList.Length - 1]; } catch { } } private static bool HasPublicIPAddress() { IPHostEntry iphe = Dns.GetHostEntry( Dns.GetHostName() ); IPAddress[] ips = iphe.AddressList; for ( int i = 0; i < ips.Length; ++i ) if ( !IsPrivateNetwork( ips[i] ) ) return true; return false; } private static bool IsPrivateNetwork( IPAddress ip ) { // 10.0.0.0/8 // 172.16.0.0/12 // 192.168.0.0/16 if ( Utility.IPMatch( "192.168.*", ip ) ) return true; else if ( Utility.IPMatch( "10.*", ip ) ) return true; else if ( Utility.IPMatch( "172.16-31.*", ip ) ) return true; else return false; } private static IPAddress FindPublicAddress() { try { WebRequest req = HttpWebRequest.Create( "http://www.runuo.com/ip.php" ); req.Timeout = 15000; WebResponse res = req.GetResponse(); Stream s = res.GetResponseStream(); StreamReader sr = new StreamReader( s ); IPAddress ip = IPAddress.Parse( sr.ReadLine() ); sr.Close(); s.Close(); res.Close(); return ip; } catch { return null; } } } } |
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: Dec 2005
Posts: 442
|
Quote:
|
|
|
|
|
|
|
#4 (permalink) |
|
Newbie
Join Date: Mar 2008
Posts: 14
|
i tryed with the router and computers connected to it connected to the sever with the router ip but outside clients cannont connect with the internet...figuring it was the router i connected direct to the cable modem clients still canont connect through the internet...and the firewall is turned off
|
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Dec 2005
Posts: 442
|
if you want to try my version and update it if needed heres a link to where i poosted it for someone else i didnt create it i just posted the one i use
fixits serverlist |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
|
It sounds like you are using a router correct?
If so let me know and I may be able to help you out ![]()
__________________
-Lichking- "I believe in Christianity as I believe in the sun... not because I see it but because by it I see everything else." C.S. Lewis Heed what I say, for it shall be mentioned only once.
|
|
|
|
|
|
#12 (permalink) |
|
Newbie
Join Date: Jun 2003
Posts: 47
|
greetings. im having same problem here lol.
heres the thing: - im connected to a firewall - i have port 2593 redirected to my network IP (192.168....) - changed this on ServerList.cs Code:
public static readonly string Address = "palanolho.no-ip.org";
public const string ServerName = "RunUO TC";
public static void Initialize() {
Listener.Port = 2593;
EventSink.ServerList += new ServerListEventHandler( EventSink_ServerList );
}
- on my server console it shows this: Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527 Core: Running on .NET Framework Version 2.0.50727 Scripts: Compiling C# scripts...done (0 errors, 0 warnings) Scripts: Compiling VB.NET scripts...no files found. Scripts: Verifying...done (2206 items, 552 mobiles) Regions: Loading...done World: Loading...done (111729 items, 3952 mobiles) (4,07 seconds) UO Architect Server for RunUO 2.0 is listening on port 2594 Reports: Stats: Loading...done Reports: Staff: Loading...done Address: 127.0.0.1:2593 Address: 192.168.10.221:2593 Address: 192.168.1.221:2593 - my ISP is not blocking the PORT ( i checked ) any help on this ? thanks in advance Last edited by palanolho; 04-13-2008 at 02:17 PM. |
|
|
|
|
|
#13 (permalink) | ||
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Quote:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527 Core: Running on .NET Framework Version 2.0.50727 Scripts: Compiling C# scripts...done (0 errors, 0 warnings) Scripts: Compiling VB.NET scripts...no files found. Scripts: Verifying...done (2206 items, 552 mobiles) Regions: Loading...done World: Loading...done (111729 items, 3952 mobiles) (4,07 seconds) UO Architect Server for RunUO 2.0 is listening on port 2594 Reports: Stats: Loading...done Reports: Staff: Loading...done Address: 127.0.0.1:2593 Address: 192.168.10.221:2593 Address: 192.168.1.221:2593 Address: 127.0.0.1:2593 Address: 192.168.10.221:2593 Address: 192.168.1.221:2593 those addresses are all Internal Addresses so no ones going to be able to connect to your server. I've been behind a Firewall and my server still tells me my external IP address even though I have to route 2593 to the computer running my shard which as an internal address of 192.168.1.4 Also I'm not quit sure why you have 192.168.10.221 & 192.168.1.221 showing unless you have 2 network cards on the pc that the shard is running on. If so that might be your problem, you might consider disabling 1 of those cards.
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|