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 03-26-2008, 04:40 PM   #1 (permalink)
Newbie
 
Join Date: Mar 2008
Posts: 14
Default clients can't connect

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;
}
}
}
}
poop324 is offline   Reply With Quote
Old 03-26-2008, 04:43 PM   #2 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 153
Default

please put your script in code form like
Code:
this
__________________
Mother Earth is pregnant for the four time..for yall have knocked her up.


talon____ is offline   Reply With Quote
Old 03-26-2008, 07:36 PM   #3 (permalink)
Forum Expert
 
Kheldar's Avatar
 
Join Date: Dec 2005
Posts: 442
Default

Quote:
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
are u on a network or no? u say your not but then say that computers on your network can connect?
Kheldar is offline   Reply With Quote
Old 03-26-2008, 09:16 PM   #4 (permalink)
Newbie
 
Join Date: Mar 2008
Posts: 14
Default

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
poop324 is offline   Reply With Quote
Old 03-26-2008, 09:25 PM   #5 (permalink)
Forum Expert
 
Kheldar's Avatar
 
Join Date: Dec 2005
Posts: 442
Default

wierdness have u tried to find and use fixits serverlist or sumthing similiar?
Kheldar is offline   Reply With Quote
Old 03-26-2008, 10:55 PM   #6 (permalink)
Newbie
 
Join Date: Mar 2008
Posts: 14
Default

what is mrfixits and where do i get it? i tryed searching for it and i only find stuff with people saying they used it...
poop324 is offline   Reply With Quote
Old 03-27-2008, 09:19 AM   #7 (permalink)
Forum Expert
 
Kheldar's Avatar
 
Join Date: Dec 2005
Posts: 442
Default

mr fixits was an alternate serverlist its what i have to use to get people able to connect but im running a 1.0 server
Kheldar is offline   Reply With Quote
Old 03-27-2008, 09:20 AM   #8 (permalink)
Forum Expert
 
Kheldar's Avatar
 
Join Date: Dec 2005
Posts: 442
Default

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
Kheldar is offline   Reply With Quote
Old 03-28-2008, 12:11 PM   #9 (permalink)
atf
Lurker
 
Join Date: Jul 2004
Age: 28
Posts: 8
Default

I have the same problem. Any help would be greatly helpful.
atf is offline   Reply With Quote
Old 03-28-2008, 06:00 PM   #10 (permalink)
Forum Expert
 
Iomega0318's Avatar
 
Join Date: Feb 2005
Location: Dirt City,TX
Age: 21
Posts: 608
Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
Default

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.

Iomega0318 is offline   Reply With Quote
Old 03-28-2008, 06:52 PM   #11 (permalink)
Forum Expert
 
Kheldar's Avatar
 
Join Date: Dec 2005
Posts: 442
Default

did fixits help aint heard back from ya yet
Kheldar is offline   Reply With Quote
Old 04-13-2008, 02:01 PM   #12 (permalink)
Newbie
 
Join Date: Jun 2003
Posts: 47
Default

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 );
}
- the no-ip is updated
- 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
- people can connect, select the realm but then cant connect to "char server"
- 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.
palanolho is offline   Reply With Quote
Old 04-13-2008, 04:16 PM   #13 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by palanolho View Post
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 );
}
- the no-ip is updated
- 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
- people can connect, select the realm but then cant connect to "char server"
- my ISP is not blocking the PORT ( i checked )
any help on this ?

thanks in advance
According to what you posted no one has connected. It would say something about XXX connected then another line of disconnecting.

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
Also somewhere in the above code it should say something about your external IP address.

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:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
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."
Greystar is offline   Reply With Quote
Old 04-13-2008, 07:01 PM   #14 (permalink)
Newbie
 
Join Date: Jun 2003
Posts: 47
Default

yey!! i got the server runnig .. just dont ask me how because im not quite sure lol

thanks for the help =)

- Pala
palanolho 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