08-01-2013, 11:55 AM
Добрый день!
У меня возникла такая проблема. У меня нет особых навыков по созданию серверов и это мой первый проект.
Имеется машина с внешним айпи- 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>
-----------------------------------------------------------------------------
Проблема в том,что сервер работает, а достучаться до него с клиента не могу.
У меня возникла такая проблема. У меня нет особых навыков по созданию серверов и это мой первый проект.
Имеется машина с внешним айпи- 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>
-----------------------------------------------------------------------------
Проблема в том,что сервер работает, а достучаться до него с клиента не могу.