Показать сообщение отдельно
Непрочитано 28.07.2013, 19:47   #3
Пользователь

По умолчанию Re: Сервер в интернет...

Server.properties
LoginHost = 127.0.0.1
LoginPort = 9014
GameserverHostname = 192.168.0.24
GameserverPort = 7777

LoginServer.properties
LoginserverHostname = 192.168.0.24
LoginserverPort = 2106
LoginHostname = 127.0.0.1
LoginPort = 9014

default-ipconfig.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- Note: If file is named "ipconfig.xml" this data will be used as network configuration, otherwise server will configure it automatically! -->
<!-- Externalhost here (Internet IP) or Localhost IP for local test -->
<gameserver address="46.98.207.13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <!-- Твой внешний адрес -->
xsi:noNamespaceSchemaLocation="../data/xsd/ipconfig.xsd">
<!-- Localhost here -->
<define subnet="127.0.0.0/8" address="127.0.0.1" /> <!-- твой локалхост -->
<!-- Internalhosts here (LANs IPs) -->
<!-- а вот тут можно разрешать с каких подсетей (лакальныйх) можно подключиться к твоему серверу. Например у меня 4 сети, 3м из них я запрещаю видеть сервер, а в той которой работаю я разрешаю. Это относится к подключения в локалке!!! К подключениям с наружи не относится -->
<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.1/16" address="192.168.0.1" />
</gameserver>
TosyBosy вне форума Ответить с цитированием
Сказали спасибо: