|
||
|
|||||||
| 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: Jun 2004
Posts: 81
|
I was just wondering if this port is still valid and needs to be opened if I'm running a router. I have been attempting to open this port on my Belkin Router and I've been getting "Invalid Port" errors. I've called my router tech support and they've preety much said that I need to first make sure that this port is still valid. So if anybody can help me, I'm trying to set up the RunUO server and I'm not getting people to connect. So I attempted to open port 2593 and it's said to be invalid, is it still a valid port? And with all the RunUO updates do I still need this port to be open if I'm running behind a router?
|
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
|
I am like 90% sure it is still a valid port. I would use No-IP (at www.noip.com) as a host IP. It took care of my port and connection problems fairly easily and it is pretty easy to set up. All you would have ot do is D/L the file, set up an account, name your host, and copy & paste your host into UOGateWay. Then next refresh it shold be good to go.
|
|
|
|
|
|
#3 (permalink) |
|
Newbie
Join Date: Jun 2004
Posts: 81
|
Hmm, ok so if I use this when I edit my ServerList.cs I change
public const string address = to MY IP? Or the new web IP that was created. And in UO gateway, the server IP is MY IP, or that of the new web IP? My current settings are public const string Address = "runuo-hef.servegame.com"; And i'm trying to connect to my server through UO gateway using the web IP runuo-hef.servergame.com and It's getting stuck on the first connect screen, ideas? |
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
|
You really should not have to change anything in ServerList.cs except your shard's name (to other then Test Center). I am guessing you are not using No-IP, but is your IP & port listed on UOGateWay? That is why I rec. using No-IP, does most of that stupid work for you, and I have not had any trouble with it. Then all you would have to do it put your host name in where your IP is (on UOGateWay). It is a free program and easy to use.
|
|
|
|
|
|
#5 (permalink) | |
|
Newbie
Join Date: Jun 2004
Posts: 81
|
Quote:
|
|
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
|
Sorry bout that. You still should not have to change the ServerList.cs file, but the web address will be the one that you use. You put the web IP in UOGateway. It generally takes a few minutes for it to load up (when UOGateWay does it's checks on servers), but afterwards should be good to go.
Quote:
Code:
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 = "Beyond Reality";
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;
}
}
}
Code:
/* 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"; */ |
|
|
|
|
|
|
#8 (permalink) |
|
Newbie
Join Date: Jun 2004
Posts: 81
|
Ok, i changed to
public const string Address = null; I've restarted the RunUo server then attempted to connect to the server using UOgateway and using the web IP that No-IP provided me. Still not working. No-IP told me that I needed to wait 5 mins and it's been at least 10 so the DNS should be updated. Are you running behind a router? Maybe that's still my problem. |
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
|
No, am not running through a router, that is why I am not fully about to go through everything with you. You have connection through No-IP? Is the box next to your server checked off? I saw some router options in No-IP for routers, have to checked any of them out? They have some stuff for routers under connections tab. I would start with trying to get No-IP connected first. Once that is connected, then work on UOGateway to make sure they have a connection. I would keep server up, in case it does work, you can test it.
|
|
|
|
|
|
#10 (permalink) | |
|
Newbie
Join Date: Jun 2004
Posts: 81
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|