логин делаешь так:
Код:
LoginServer will listen for connections on specified port
loginserver.network.client.port=2106
# LoginServer will bind specified network interface
# * - bind all interfaces
loginserver.network.client.host=79.140.4.156
# How many times player can try to login before he get's banned for bruteforcing
loginserver.network.client.logintrybeforeban=5
# For what time in minutes player should be banned in case of bruteforcing
loginserver.network.client.bantimeforbruteforcing=15
# Host that will be used by LS to listen for GS connections
loginserver.network.gameserver.host=*
# Port that will be used by LS to listen for GS connections
loginserver.network.gameserver.port=9014
# Nuber of additional threads for NIO that will handle only reading
loginserver.network.nio.threads.read=0
# Nuber of additional threads for NIO that will handle only writing
loginserver.network.nio.threads.write=0
# Create accounts automatically or not?
loginserver.accounts.autocreate=true
game так:
Код:
# Port that will be used to listen for client connections
gameserver.network.client.port=7777
# Host that will be used to listen for client connections
gameserver.network.client.host=79.140.4.156
# Maximum online players on the server
gameserver.network.client.maxplayers=100
# Address of login server
gameserver.network.login.address=localhost:9014
# Id of this game server
gameserver.network.login.gsid=1
# Password of this game server
gameserver.network.login.password=пароль
ipconfig так:
Код:
<ipconfig default="79.140.4.156">
<!--
IANA-reserved private IPv4 network ranges
Access only from local networks, external client can't have any of
the following ip addresses
-->
<iprange min="0.0.0.0" max="255.255.255.255" address="79.140.4.156"/>
<iprange min="172.16.0.0" max="172.31.255.255" address="172.16.0.0"/>
<iprange min="192.168.0.0" max="192.168.255.255" address="192.168.0.0"/>
</ipconfig>
Попробуй должно получиться.