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

Soyna

Wanderer
Log on problems

No one but the local people can log on to the server, I setup the router to forward the 2593 port they all get stuck at verifying account please help if you can


Thanks 8)
 

henk

Wanderer
Here is the serverlist.cs which works for me, both for lan users as internet users. Credit goes out to Quantos I believe for helping me with my problem with this serverlist.cs.

[code:1]
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 = "yourpubliciphere";

public const string LocalServerAddress = "yourlaniphere";

public const string ServerName = "yourservernamehere";

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;
}
}
}
[/code:1]
 

Cole

Wanderer
henk,
Do you still have to set up a local connection in UO Gateway with your serverlist.cs ?

Seems I'm having the same prob.. Thanks for posting this!! I'll try it out tonight!
 

Soyna

Wanderer
Log ons

Ok now other people can log on but when I try from within the network I get invalid credentials so I can not log on lol

how do I fix that?
 

Cole

Wanderer
Thanks Phantom!

I still can't seem to connect from my other computer on my LAN...

Get's stuck on the Connecting screen before you select a character...

Gives this message:
"The client could not connect to the game server. It must have been taken down. please wait a few minutes and try again.

Any help on this would be MUCH appriciated!!
 
Then you'll need to set up port forwarding on your router. Once you do that you should be able to access it from outside, so point your internal machines to the outside address and you're golden.

Cheers,
Ignacio
 

henk

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

But Quantos can take the credit :)

I'm terribly sorry about that. I thought the one on your site was a different one :).
 

Cole

Wanderer
Port forwarding is already set up on my router... Sorry I thought I already posted that...

People from the Internet can get to my server fine.. I just can seem to get to it from anouther computer on my LAN.
 
I took another look at your symptoms, and looking at it again it seems to be a classic case of not putting the proper address in ServerList.cs. Does the address match the one returned by http://www.showmyip.com/ ?

Cheers,
Ignacio
 

Cole

Wanderer
Sry bro must have edited my reply as you were typing.. The IP is in there correctly... People can get to it from outside my LAN fine..

Just having trouble in the inside...
 
Once you put the external address in both ServerList.cs and UOG and do all the other changes (port forwarding, firewall) then it should work, so I'm stumped.

Sorry,
Ignacio
 

Soyna

Wanderer
I have the port forwarding and I have the correct outside ip intered, Outside log ins are fine its the network logins that dont work
 

Cole

Wanderer
Sonya, I'm with ya.. We figure this out and both of us well be happy!!

Thanks for the attempt Ignacio Vazquez-Abrams!!

Much appriciated!!

Anyone else have any ideas?

Sonya what kind of router u using?
 
Top