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 10-23-2007, 08:09 PM   #1 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 37
Default your instructions for setting up connectivity dont work

your instructions for setting up connectivity don't work and theres a problem with the instructions given it says to look for these lines in the serverlist.cs file

public const string Address = null;

public const string ServerName = "RunUO Test Center";


the first line doesn't exist but the second one does whats the deal with that?

my file looks like this can anyone please spot the line i need changed because to me it doesn't look like it exists in here what so ever and its frustrating me so much

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 static readonly string Address = null;

public const string ServerName = "RunUO TC";

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 )
{

if ( IPAddress.TryParse( addr, out outValue ) )
return true;

try
{
IPHostEntry iphe = Dns.GetHostEntry( 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.GetHostEntry( Dns.GetHostName() );

for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i )
contains = theirAddress.Equals( iphe.AddressList[i] );

return contains;
}
}
}
alex916 is offline   Reply With Quote
Old 10-24-2007, 11:04 AM   #2 (permalink)
Newbie
 
Fokus's Avatar
 
Join Date: Aug 2007
Age: 19
Posts: 65
Send a message via AIM to Fokus
Default

Quote:
Originally Posted by alex916 View Post
your instructions for setting up connectivity don't work and theres a problem with the instructions given it says to look for these lines in the serverlist.cs file

public const string Address = null;

public const string ServerName = "RunUO Test Center";


the first line doesn't exist but the second one does whats the deal with that?

my file looks like this can anyone please spot the line i need changed because to me it doesn't look like it exists in here what so ever and its frustrating me so much

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 static readonly string Address = null;

public const string ServerName = "RunUO TC";

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 )
{

if ( IPAddress.TryParse( addr, out outValue ) )
return true;

try
{
IPHostEntry iphe = Dns.GetHostEntry( 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.GetHostEntry( Dns.GetHostName() );

for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i )
contains = theirAddress.Equals( iphe.AddressList[i] );

return contains;
}
}
}
First off try to use code tag's around the script so we can read it better =).
Second this
Code:
public const string ServerName = "RunUO TC";
Will be the name of you're shard.

Second:
Code:
public static readonly string Address = null;
I would put in my ipaddress there. Try that and see if you're problem is fixed.
__________________
-When All Is Said And Done More Is Said Then Done-
Fokus is offline   Reply With Quote
Old 10-24-2007, 04:05 PM   #3 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 37
Default

one other thing when its asking for my ip address for things like portworwarding do i use the one i get from doing ipconfig /all in the command promt or the one i get from WhatIsMyIsp.com

Last edited by alex916; 10-24-2007 at 04:12 PM.
alex916 is offline   Reply With Quote
Old 10-24-2007, 04:16 PM   #4 (permalink)
Newbie
 
Fokus's Avatar
 
Join Date: Aug 2007
Age: 19
Posts: 65
Send a message via AIM to Fokus
Default

Either Or should work, they shouldn't be any different but if they are try it from you ipconfig first and if that fails go to whatismyip =)
__________________
-When All Is Said And Done More Is Said Then Done-
Fokus is offline   Reply With Quote
Old 10-24-2007, 04:24 PM   #5 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

Quote:
Originally Posted by alex916 View Post
one other thing when its asking for my ip address for things like portworwarding do i use the one i get from doing ipconfig /all in the command promt or the one i get from WhatIsMyIsp.com
In your router setup for port forwarding you need to put in the Local IP, usually something like 192.168.1.100 of the computer hosting your shard. You can get this from the ipconfig /all.

In your Serverlist.cs file you need to use your external IP address, the one from what is my ip.
stormwolff is offline   Reply With Quote
Old 10-24-2007, 04:29 PM   #6 (permalink)
Forum Expert
 
TheRockstar2253's Avatar
 
Join Date: Sep 2007
Location: Over there
Posts: 1,575
Default

Actually Try Downloading this Serverlist.cs Script I added Below as an Attachment:

It finds the internet IP for you.

It came from UOGateway and I use it for my shard and It works great for me.

Here is where you changes the Server Name:

Code:
// ==================================================================================
		// YOUR SERVERS NAME
		// ==================================================================================
		public const string ServerName = "RunUO Test Center";

And when you load up your Server, Remember to look for this IP Address on the Black Screen which is your RunUO Core:

Code:
Serverlist.cs: 2.0
Internet IP: 18.202.62.251 (http://www.ipaddy.com/)
Address: 127.0.0.1:2593
Address: 18.202.62.251:2593
The IP Address I highlighted in Red in the IP you look for to put in your Server IP Address.

*NOTE* I edited the IP Address Matters Of Privacy Security.


Download the Serverlist.CS Script Below and Overwrite it with your Origional Serverlist.cs Located in your RunUO/Scripts/Misc folder:
Attached Files
File Type: cs ServerList.cs (14.2 KB, 18 views)
TheRockstar2253 is offline   Reply With Quote
Old 10-24-2007, 06:20 PM   #7 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 37
Default

ok well i got the connection working and my friend is now able to log onto my server but when he does he imediatly freezes up his health bar doesnt show any color and he can take about 3 steps before he freezes up totally and has to log out and back in again but then it just happens again any ideas on how to fix this??
alex916 is offline   Reply With Quote
Old 10-24-2007, 06:28 PM   #8 (permalink)
Forum Expert
 
TheRockstar2253's Avatar
 
Join Date: Sep 2007
Location: Over there
Posts: 1,575
Default

Quote:
Originally Posted by alex916 View Post
ok well i got the connection working and my friend is now able to log onto my server but when he does he imediatly freezes up his health bar doesnt show any color and he can take about 3 steps before he freezes up totally and has to log out and back in again but then it just happens again any ideas on how to fix this??
Did he Patch Wrong?

Remember you shouldnt ever Patch Passed 6.0.17 because it can ruin your client. Pretty much 6.0 is to a new level on UO.

Tell him to make sure he's not patched past 6.0.17.

Also make sure he's atleast patched to 5.0.8 or something like that.
TheRockstar2253 is offline   Reply With Quote
Old 10-24-2007, 06:37 PM   #9 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 37
Default

ok but that whole patching thing is a problem cause we also play on the demise server and i dont know if not patching fully is going to effect us being able to play on there? any thoughts?
alex916 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