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 don't know how to login to my own server

Status
Not open for further replies.

fc_cuervo88

Wanderer
nooooooo............... i followed them perfectly.........this is what happens

Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (1409 items, 389 mobiles)
World: Loading...done (87058 items, 2338 mobiles) (15,7 seconds)
Regions: Loading...done
Address: 127.0.0.1:2593
Address: 200.122.111.233:2593
Address: 3.0.0.2:2593
Client: 200.122.111.233: Connected. [1 Online]
Login: 200.122.111.233: Valid credentials for 'fc_cuervo88' <-- here i should be logged *
Client: 200.122.111.233: Disconnected. [0 Online]



* but nothing happens..... instead of logging in this appears: The client could not attach to the game server. It must have been taken down. Please wait a few minutes and try again
 

Sep102

Page
fc_cuervo88, please discontinue spamming and bumping this thread. Only post relevent posts, not ones pushing the thread to the top or complaining.

Please post your ServerList.cs.
 

fc_cuervo88

Wanderer
sorry man but nothing happens...... this is whats says:

Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\ServerList.cs: CS0101: (line 9, column 15) The namespace 'Serv
er.Misc' already contains a definition for 'ServerList'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

fc_cuervo88

Wanderer
well...... i solve that problem but still can't login..... the same problem as before:

Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (1409 items, 389 mobiles)
World: Loading...done (87050 items, 2338 mobiles) (14,3 seconds)
Regions: Loading...done
Address: 127.0.0.1:2593
Address: 200.122.111.233:2593
Address: 3.0.0.2:2593
Client: 200.122.111.233: Connected. [1 Online]
Login: 200.122.111.233: Valid credentials for 'fc_cuervo88'
Internet IP: 200.122.111.233 (http://www.edpsciences.com/htbin/ipaddress)
Client: 200.122.111.233: Disconnected. [0 Online] <--- and the client freezes here
 

fc_cuervo88

Wanderer
as i see that nobody has an answer i have a last question...... I was wondering if there is an especific client version needed to play in my server (last version of the RUNUO)
 

stormwolff

Knight
fc_cuervo88 said:
as i see that nobody has an answer i have a last question...... I was wondering if there is an especific client version needed to play in my server (last version of the RUNUO)

There is not a required #, but you will get problems with older clients. Always patch your client to the current ea/osi version using the autopatcher.

fc_cuervo88 said:
can somebody tell me where to download and older version of the RUNUO?? maybe if i try with that one it will work

This is against the rules and there is really no reason to get an older version.
 

stormwolff

Knight
Ok lets start fresh and see if we can figure out your issue.

How is your network setup?
Please post your serverlist.cs file.
 

fc_cuervo88

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

stormwolff

Knight
If all you want to do is connect locally

put in 127.0.0.1 in here

public const string Address = null;

example

public const string Address = "127.0.0.1";

The quotes must be there.


If you want others to be able to connect put the ip that www.whatismyip.com gives you in this spot

public const string Address = null;

example

if it gives you 12.122.122.159

put

public const string Address = "12.122.122.159";


How are you trying to connect?

I suggest using uogateway. If you are on the same computer as the runuo server you can make a custom local server entry in the uogateway program. Put 127.0.0.1 as your ip and try to connect. Make sure you are fully patched first.
 

fc_cuervo88

Wanderer
this is what happens:
Client: 200.122.111.233: Connected. [1 Online]
Login: 200.122.111.233: Valid credentials for 'fc_cuervo88'
Client: 200.122.111.233: Disconnected. [0 Online] <---- the client freezes here and then this appears :The client could not attach to the game server. It must have benn taken down. Please wait a few minutes and try again


by the way here is 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 = "127.0.0.1";

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;
}
}
}
 
Status
Not open for further replies.
Top