RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Log on problems

Cole

Wanderer
When I go through the public address it's not validating my login...

When I go through my local address it seems to be validating my login, then disconnecting me...
 
If it's not validating via the external address then port forwarding hasn't been set up properly, or you have a firewall set up on the shard server blocking the port. Windows XP has a firewall built in, so if you're running the shard on XP then you need to disable it.

Cheers,
Ignacio
 

Cole

Wanderer
It says it is Disabled... Under Control Panel -> Network Connections - Local Connection -> Advanced...

I do have the firewall enabled on my router...

I've disabled it and I still cannot get connected...
 

Quantos

Lord
Phantom said:
Actually credit goes to me for posting that version of the ServerList.cs

But Quantos can take the credit :)

I don't want the credit Phantom, you did the work, I just know it works and point people there :)
 

Cole

Wanderer
Quantos,

You have any idea why I can't connect through my LAN but people can connect to my server through the internet?

LOL
 

Quantos

Lord
What address do you have entered into UOGateway to connect to your shard with?

How far does the connection get?

What errors does the console say?
 

Cole

Wanderer
I've entered both 198.168.1.101 and my external ip 64.253.101.196 in the gateway and I can't seem to connect...

When I enter 64.253.101.196 I get this message and it freezes before showing me the server selection screen:
"Couldn't connect to Ultima Online. Please try again in a few moments.

When I enter 192.168.1.101 I get this message and it freezes after the server selection screen:
"The client could not attach to the game server. It must have been taken down. Please wait a few minutes and try again."

I hope this helps you help me :)
 

Cole

Wanderer
127.0.0.1 Connects to the local host.. I can connect to the server from itself

I'm trying to connect to the server from another computer on my LAN...

I tried it.. Got this message:
"Couldn't connect to Ultima Online. Please try again in a few moments. "
 

Cole

Wanderer
I've got DSL with a Linksys Router... The router is port forwarded 2593 to 192.168.1.101, which is the server...

I'm not using proxy...
 

Cole

Wanderer
I've got DSL with a Linksys Router... The router is port forwarded 2593 to 192.168.1.101, which is the server...

I'm not using proxy...
 

Soyna

Wanderer
I am also a router and port forwarding is on too

I get as fas as choosing the server it gets in to verifing the account thats where it stops

I am on a 1.5 meg cable modem

Outsiders can connect perfectly its just from network
 

Cole

Wanderer
Sure:

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 = "sentinielheights.servegame.com";

public const string LocalServerAddress = "192.168.1.101";

public const string ServerName = "Sentiniel Heights";

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

return contains;
}
}
}
 

Soyna

Wanderer
this is my script

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 = "";
*
* 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 = "192.168.0.3";

public const string ServerName = "Dragon Lands";

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

return contains;
}
}
}
 
Top