 |
RunUo.Korean.Forum RunUo(·±À¯¿À)¿¡ °üÇÑ Çѱ¹ Æ÷·³ »çÀÌÆ®
|
ÀÌÀü ±Û :: ´ÙÀ½ ±Û |
±Û ¾´ÀÌ |
¸Þ¼¼Áö ³»¿ë |
kwy3420
°¡ÀÔÀÏ: 2004³â 08¿ù 15ÀÏ
°Ô½Ã¹°: 126
|
±Û ÀÛ¼º½Ã°£ : 2004-11-12 ±Ý 9:38 pm Á¦¸ñ: kjss&·Î¾î´Ô ÀÌ»óÇÕ´Ï´Ù... |
|
|
;Loginservers for Ultima Online
;Do not edit this file or patching will fail! Always save a backup.
;LoginServer=login.owo.com,7775
;LoginServer=login.owo.com,7775
;LoginServer=login.owo.com,7776
;LoginServer=login.owo.com,7776
LoginServer=211.247.93.177,2593
============ÀÌ À§´Â ·Î±ä ÀÌ°í ¾Æ·¡´Â ¼¹ö ½ºÅ©¸³Æ®========
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 = "SadowAgeOf";
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;
}
}
}
±×¸®°í ¼¹ö¸¦ ¿¸é¿ä... ShadowAgeOf server Is Full....
ÀÌ·¸°Ô ¶°¿ä
ÀüÇô ¹æÈº®°ú »ó°üÀÌ ¾ø½À´Ï´Ù...
¹æÈº®µµ ¾²Áöµµ ¾Ê°í¿ä....
¹æÈº®Á¦°Å Çß°í ¶Ç ±×¸®°í
´Ù¸¥ ¹®Á¦³ª Àú±â ½ºÅ©¸³Æ®¿¡ À߸øµÈÁ¡ÀÌ ÀÖ¾î¼ ±×·±°ÇÁö
¾Æ´Ï¸é ´Ù¸¥¹®Á¦¸¦Á¤È®È÷ °¡¸£ÃÄ ÁÖ¼¼¿ä.....
Àý´ë ´ëÃæ ¾Ë·ÁÁÖ½ÃÁö ¸¶¼¼¿ä
·Î¾î´Ô ¾Æ½Ã´Â°Ô ¸¹À¸¸é¼ ÀúÁ» µµ¿ÍÁֽá ¤Ð¤Ì |
|
¸Ç À§·Î °¡±â |
|
kjss10
°¡ÀÔÀÏ: 2004³â 01¿ù 19ÀÏ
°Ô½Ã¹°: 211
ÁÖ ¼Ò: ¼¿ï °µ¿±¸ °í´ö1µ¿/560¹øÁö ÁöÃþ101È£
|
±Û ÀÛ¼º½Ã°£ : 2004-11-13 Åä 1:02 pm Á¦¸ñ: Re: kjss&·Î¾î´Ô ÀÌ»óÇÕ´Ï´Ù... |
|
|
kwy3420 ´Ô ÀÛ¼º :
;Loginservers for Ultima Online
;Do not edit this file or patching will fail! Always save a backup.
LoginServer=211.247.93.177,2593
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 = "SadowAgeOf";
public static void Initialize()
{
Listener.Port = 2593;
public static void EventSink_ServerList( ServerListEventArgs e )
{
//try
//{
IPAddress ipAddr;
Resolve( Address, out 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;
}
}
}
°¢°¢ Àú·¸°Ô ÇØÁÖ¼¼¿ä...
¾Æ·¡²« ·Î¾î¾¾°¡ ´äº¯ ÇØµå·È´øºÎºÐÀε¥..-_-;; |
|
¸Ç À§·Î °¡±â |
|
|
|