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-2003, 04:33 PM   #1 (permalink)
 
Join Date: Nov 2002
Posts: 10
Send a message via ICQ to sah1226
Default help with firewall PLEASE

i am running the latest uo client patch dunno if that is the problem i disabled my fire wall i am running through a router please help on the server screen when i loginto uo it says conection blocked by firewall.

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 = "192.168.0.133";
*
* If you need to resolve a DNS host name, you can do that too:
* private const string Address = "your_dns_server_goes_here";
*/

public const string Address = "81.134.115.17";

public const string ServerName = "ZeroServ";

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;
}
}
}
sah1226 is offline   Reply With Quote
Old 07-23-2003, 04:42 PM   #2 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Your ServerList looks ok, did you forward port 2593 on the router to the local server ip? And, what ip address are you using to connect?
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 07-23-2003, 05:10 PM   #3 (permalink)
 
Join Date: Nov 2002
Posts: 222
Send a message via ICQ to moocow
Default ...

I know how ya feel lol. Yes, forward port 2593... i actually freed up port 2592-2594. If that doesnt work, try this:

Where is says:

[code:1]* The default setting, a value of 'null', will attempt to detect your IP address automatically:
* private const string Address = "null"; [/code:1]

make it:

[code:1]* The default setting, a value of 'null', will attempt to detect your IP address automatically:
* private const string Address = "YOUR IP HERE!!!";
[/code:1]
Put your IP adress in where it says "YOUR IP HERE!!!" ... yeah.

Should work... did for me.

~Moocow
moocow is offline   Reply With Quote
Old 07-23-2003, 05:57 PM   #4 (permalink)
psz
UO Gamers: Demise Administrator
 
psz's Avatar
 
Join Date: Oct 2002
Location: Swamp
Age: 29
Posts: 10,819
Default

No, you don't edit the one behind the *

That one is commented out (It's between a /* and a */)

Edit the one BELOW that.
psz is offline   Reply With Quote
Old 07-24-2003, 05:17 AM   #5 (permalink)
 
Join Date: Nov 2002
Posts: 10
Send a message via ICQ to sah1226
Default

thnx but none of it worked im still getting blocked by firewall
sah1226 is offline   Reply With Quote
Old 07-24-2003, 05:21 AM   #6 (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

Then port foward 2593 to your servers local lan.

People if you don't know about comments, go learn
Phantom 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