Цитата:
Сообщение от BJIADIMIR
Kilot - Да сам я заходил играл, не выкидало, всё стабильно работает. А вот зделать его доступным и для друзей не получается...
|
Хорошо, видимо я начало темы пропустил. С Клиентом и сервером в смысле работоспособности считаем всё ок. Играем с настройками конфигов логин, геймсерверов и l2.ini Клиента.
Итак ЛС вас видит (т.к. аккаунты создаются), не пускает ГС. Значит для логинсервера оставляем:
Код:
---------------------------------------------------------------------------
# Login Server Settings
# ---------------------------------------------------------------------------
# This is the server configuration file. Here you can set up the connection information for your server.
# This was written with the assumption that you are behind a router.
# Dumbed Down Definitions...
# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.
# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).
# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.
# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------
# Bind ip of the LoginServer, use * to bind on all available IPs
# Default: *
LoginserverHostname = *
# Default: 2106
LoginserverPort = 2106
# The address on which login will listen for GameServers, use * to bind on all available IPs
# Default: *
LoginHostname = 127.0.0.1
# The port on which login will listen for GameServers
# Default: 9014
LoginPort = 9014
# The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)
# Default: 15
IpUpdateTime = 15
Для ГС ставим практически аналогично конфигам ЛС:
Код:
# ---------------------------------------------------------------------------
# Game Server Settings
# ---------------------------------------------------------------------------
# This is the server configuration file. Here you can set up the connection information for your server.
# This was written with the assumption that you are behind a router.
# Dumbed Down Definitions...
# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.
# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).
# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.
# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------
#
# Note: External/Internal address definitions was moved to the ipconfig.xml
#
# Where's the Login server this gameserver should connect to
# Default: 127.0.0.1
LoginHost = 127.0.0.1
# TCP port the login server listen to for gameserver connection requests
# Default: 9014
LoginPort = 9014
# Bind address for gameserver. You should not need to change it in most cases.
# Default: * (0.0.0.0)
GameserverHostname = *
# Default: 7777
GameserverPort = 7777
А в файле
ipconfig.xml настраиваем
ExternalHostname для друзей, для тебя связь через
Localhost access,
InternalHostname можно не трогать (это для тебя на будущее, поставишь ещё комп и будешь заходить по LAN):
Код:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Put old contents of ExternalHostname here, used by default -->
<gameserver address="Твой статический IP">
<!-- Localhost access -->
<define subnet="127.0.0.0/8" address="127.0.0.1" />
<!-- LAN's, put old contents of InternalHostname here -->
<define subnet="10.0.0.0/8" address="10.0.0.0" />
<define subnet="172.16.0.0/19" address="172.16.0.0" />
<define subnet="192.168.0.0/16" address="192.168.0.0" />
</gameserver>
Правда с настройками
ipconfig.xml я не совсем уверен - с
L2JServer сталкиваюсь впервые, попробуй и свои настройки.
В l2.ini прописать для друзей:
ServerAddr= Твой статический IP
для себя:
ServerAddr= 127.0.0.1