Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Нет доступа из вне
#1
Добрый день!
У меня возникла такая проблема. У меня нет особых навыков по созданию серверов и это мой первый проект.
Имеется машина с внешним айпи- xxx.xxx.xxx.xxx. НА внешке устновлен windows server.
вот конфиг геймсервера
# ---------------------------------------------------------------------------
# Networking
# ---------------------------------------------------------------------------

# Where's the Login server this gameserver should connect to
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# 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.
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
GameserverHostname = *

# Default: 7777
GameserverPort = 7777
---------------------------------------------------------------------------
вот конфиг логин сервера.

---------------------------------------------------------------------------
# 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
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginserverHostname = *

# Default: 2106
LoginserverPort = 2106

# The address on which login will listen for GameServers, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginHostname = *

# The port on which login will listen for GameServers
# Default: 9014
LoginPort = 9014
-----------------------------------------------------------------------------
вот ipconfig.xml
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Externalhost here (Internet IP) or Localhost IP for local test
-->
- <gameserver address="xxx.xxx.xxx.xxx">
- <!-- Localhost here
-->
<define subnet="127.0.0.0/8" address="127.0.0.1" />
- <!-- Internalhosts here (LANs IPs)
-->
<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>
-----------------------------------------------------------------------------
Проблема в том,что сервер работает, а достучаться до него с клиента не могу.
Ответ
#2
И чего вы хотите? :redlol:
Ответ
#3
Проверьте протокол, l2.ini
Ответ
#4
Брандмауэр включен, роутер имеется?
Ответ
#5
Роутера нет. Я хочу попасть на сервер) Не локально. Где какие айпи прописать, объясните. Буду благодарен. А насчет клиента понятия не имею. в L2.ini менял адрес сервера, но кажется,что он стучится по прежнему адресу.
Ответ
#6
Старый добрый telnet вам в помощь:

Код:
telnet xxx.xxx.xxx.xxx 2106

Вероятно,у вас LS привязался на 127.0.0.1. Проверить можно netstat'ом, правда, как он работает в Windows я вам не подскажу. В Linux:
Код:
netstat -pean | grep 2106
Ответ
#7
сам в нетстате не разбираюсь. вот что он выдал, связанное с моим айпи и портами.
TCP xxx.xxx.xxx.xxx:9014 WIN-N577ARI1L2F:0 LISTENING
TCP 0.0.0.0:7777 WIN-N577ARI1L2F:0 LISTENING
порта 2106 не вижу.

Добавлено через 4 минуты
По телнету на этот порт запрос не прошел.
вот что говорит логин сервер
Loading LoginController...
Cached 10 KeyPairs for RSA communication
Stored 20 keys for Blowfish communication
Loaded 127 server names
Loaded 1 registered Game Servers
Cached 10 RSA keys for Game Server communication.
Loaded 0 IP Bans.
Listening for GameServers on 185.11.60.21:9014
Telnet server is currently disabled.
Login Server ready on 127.0.0.1:2106
Ответ
#8
Цитата:Login Server ready on 127.0.0.1:2106
Цитата:Я хочу попасть на сервер) Не локально.
мамма-мия, вы серьезно?
Ответ
#9
Более чем.
Ответ
#10
Если вы вдруг не заметили, в моем сообщении помимо риторического вопроса, висит и решение проблемы
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Попытка доступа неудачна 01g 1 2,516 05-03-2016, 11:04 AM
Последний пост: 01g

Перейти к форуму:


Пользователи, просматривающие эту тему: 2 Гость(ей)