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!

Sever help

Sinvie

Wanderer
Sever help

My sever is up and running but when i try to connect it freezes uo up and well stops. Any clues why?
 

Johabius

Knight
If you are running the client and server on the same machine, you should probably lower the priority of the client through the task manager.
 

Sinvie

Wanderer
Ok it says connecting when i log in then says Couldent connect to ultima online.Please try again later
 

Seanchen.net

Wanderer
Sinvie said:
Ok it says connecting when i log in then says Couldent connect to ultima online.Please try again later

Are you using 127.0.0.1 to login?
Are you using the current client?
What version are you using?
Are you using UO Gateway?
Do you have a Router?

Answer all these questions then I can help you.
 

Sinvie

Wanderer
Are you using 127.0.0.1 to login?I was trying
Are you using the current client? My uo Client? SE(Samurai Empire)
What version are you using?Of runuo? 1.0.0
Are you using UO Gateway?Yes
Do you have a Router?Yes
 

Seanchen.net

Wanderer
Sinvie said:
Are you using 127.0.0.1 to login?I was trying
Are you using the current client? My uo Client? SE(Samurai Empire)
What version are you using?Of runuo? 1.0.0
Are you using UO Gateway?Yes
Do you have a Router?Yes

What version is the client, it makes a difference, if your not using the current version you need to patch.

Post your serverlist.cs since your using a router.
 

Sinvie

Wanderer
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 = "RunUO Test Center";

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

there ya are also i patched today
 

Johabius

Knight
Your problem may lie here:

Code:
/* Address:
*
* The default setting, a value of 'null', will attempt to detect your IP address automatically:
* private const string Address = null;
*
*[B] 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";[/B]
*
* 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;
 

Johabius

Knight
It's already there...instead of null in this line:

Code:
public const string Address = null;
You need to have your IP address, since you are using a router
 
Top