Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 07-23-2004, 12:07 AM   #1 (permalink)
 
Join Date: Jul 2004
Location: In Your Internet
Age: 21
Posts: 793
Send a message via AIM to Darkness_PR Send a message via MSN to Darkness_PR
Question Each Time I Try It Disconects.....

I set up ip from the link runuo gave me by the way is for a local server......so i did that and did acc in UOG.....i got runuo running and when i neter acc and pass everything ok when i hit name its says disconect and says clirnt couldnot attach.....i read everything but im still learning plz help any help i wopuld really would be glad with it thanks

I also have a firewall and router jujst in case
Darkness_PR is offline   Reply With Quote
Old 07-23-2004, 05:11 AM   #2 (permalink)
J Powers your World
 
jrocks's Avatar
 
Join Date: Jan 2004
Location: London, England
Age: 22
Posts: 547
Send a message via ICQ to jrocks Send a message via MSN to jrocks
Default

Have you set up router properly?
__________________
jrocks.... but not at scripting :(

Message to "n00bs" Search before you ask questions which have been answered 100 times before
jrocks is offline   Reply With Quote
Old 07-23-2004, 08:50 AM   #3 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Post your severlist.cs
Phantom is offline   Reply With Quote
Old 07-23-2004, 05:03 PM   #4 (permalink)
 
Join Date: Jul 2004
Location: In Your Internet
Age: 21
Posts: 793
Send a message via AIM to Darkness_PR Send a message via MSN to Darkness_PR
Default Heres The Server List.....

Threres the serverlist but.....i wanted to be local but i want ppl to get in....about the router dunno how to set my router i went to command promp and typed ipcongfif and tried all the ip's that gave me and nada......also i have a firewall nortons fire wall but i duuno how to set it so port can be open.......

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 = "Apocalypsis Realm";

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