Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 08-18-2007, 05:24 PM   #1 (permalink)
Newbie
 
Join Date: Jun 2006
Age: 21
Posts: 26
Default Help Me!

I welcome all. At me such problem, I RunUO disconnects all. It perceives only local Ip. And external disconecting. That to me with it to do prompt.RunUO to me gives out three Ip. The first 127.0.0.1 the Second my external Ip 195.238.189.197 and the third my local 10.0.11.27. When I come in UO it to me gives out:
Client:195.238.189.197 :Connecting.[1 Online]
Login:195.238.189.197:Valid credentials for 'q'
Client:10.0.11.27:Connecting.[2 Online]
Client:195.238.189.197 : Disconecting.[1 Online]
qwertylam is offline   Reply With Quote
Old 08-18-2007, 07:30 PM   #2 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

Quote:
the Second my external Ip 195.238.189.197
That is not an external ip address. Check WhatIsMyIP.com - 75.126.37.2 for your external address.

Please post your serverlist.cs file in code tages.
stormwolff is offline   Reply With Quote
Old 08-18-2007, 08:16 PM   #3 (permalink)
Forum Expert
 
Join Date: Dec 2005
Location: Germany
Age: 31
Posts: 401
Default

Stormwolff, that should very well be an external address. You confused it with the private class C range, which is 192.168.x.x.
Setharnas is offline   Reply With Quote
Old 08-19-2007, 01:48 AM   #4 (permalink)
Newbie
 
Join Date: Jun 2006
Age: 21
Posts: 26
Default

Quote:
Originally Posted by stormwolff View Post
That is not an external ip address. Check WhatIsMyIP.com - 75.126.37.2 for your external address.

Please post your serverlist.cs file in code tages.
(Your IP Is 195.238.189.197).It also is my external IP. 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 = 195.238.189.197;
*
* 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 = "195.238.189.197";
*
* 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 = "Land of Legends";

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[i] );

return contains;
}
}
}
qwertylam is offline   Reply With Quote
Old 08-19-2007, 10:14 AM   #5 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

Quote:
Originally Posted by Setharnas View Post
Stormwolff, that should very well be an external address. You confused it with the private class C range, which is 192.168.x.x.
Oops, thats what I get for glancing over your post.

Quote:
Originally Posted by qwertylam View Post
(Your IP Is 195.238.189.197).It also is my external IP. My ServerList.cs

You put your address in a section of the code that is commented out.

Code:
		/* Address:
		 * 
		 * The default setting, a value of 'null', will attempt to detect your IP address automatically:
		 * private const string Address = 195.238.189.197;
		 * 
		 * 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 = "195.238.189.197";
		 * 
		 * If you need to resolve a DNS host name, you can do that too:
		 * private const string Address = "shard.host.com";
		 */
The /* to */ parts are never read by the compiler. It's the same as doing // i front of a line to comment things out.

You need to edit the part below that part that says


Code:
public const string Address = null;
change it to

Code:
public const string Address = "195.238.189.197";

Last edited by stormwolff; 08-19-2007 at 10:18 AM.
stormwolff is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5