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!

i just broke the newbie proof walkthrough

kerrick718

Wanderer
i just broke the newbie proof walkthrough

i have runuo on my computer and i have the .net framework 1.1
my friends say you can set up a server just for yourself on your computer without doing the SQL stuff or editing the scripts
i can connect to my server through uogateway but when i go to move on to character creation it disconnects me
my friend has a test server that i was playing on the other day without any of the SQL stuff set up
any advice?
 

kerrick718

Wanderer
so any advice on why its not working? the console disconnects me as soon as i try to move to character creation but if i let the game keep going it eventually says the client couldnt attach to the server or something along those lines
 

kerrick718

Wanderer
behind a router yes but im not trying to connect to a machine behind the router
and yes i patched it a while ago but it could need a repatch ill do that right now
 

kerrick718

Wanderer
no new patches
heres my serverlist CS
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;
}
}
}
 

Quantos

Lord
Change this part
[code:1]public const string Address = null;

public const string ServerName = "RunUO Test Center";

public static void Initialize()
{
Listener.Port = 2593;[/code:1]

To this
[code:1]
public const string Address = "YourWANIPHere";

public const string LocalServerAddress = "YourLANIPHere";

public const string ServerName = "YourShardNameHere";

public static void Initialize()
{
Listener.Port = 2593;[/code:1]

To get your WAN IP click on http://www.whatismyip.com
 

kerrick718

Wanderer
right now i want to keep it local but later on i want to put it on the net for some friends to get at but my router is being dumb with its port forwarding and wont work
any other way to grabmy wan IP that whatismyip site wont load
 
Top