转载请注明出处,如有问题请联系我们! 天堂2单机服务端开外网整理篇

L2J篇



首先修改ipconfig.xml【l2jtw/l2jserver/l2jcn等等大同小异!!】
原始大致如下


<?xml version="1.0" encoding="UTF-8"?>
<!-- Put old contents of ExternalHostname here, used by default -->
<gameserver address="127.0.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">
<!-- 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>

我们将<gameserver address="127.0.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
这一行的<gameserver address="127.0.0.1"修改为<gameserver address="您的外网IP【花生壳动态域名也是输入在此】"

比如我的外网IP为 xmgtt2012.vicp.cc就修改成

<?xml version="1.0" encoding="UTF-8"?>
<!-- Put old contents of ExternalHostname here, used by default -->
<gameserver address="xmgtt2012.vicp.cc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">
<!-- 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>

俄罗斯类服务端


我们习惯将俄语的服务端统称为国外版服务端。因为国内做这个汉化开源的很少....L2JSE   yiyi曾经发布过一个源。。。其发布了一个开外网方法这个方法在国外服务端里都实用。。。

开外网方法
服务端方面只需要修改gameserver\config\network\server.ini

内的ExternalHostname = 127.0.0.1
将127.0.0.1改为外网IP(不需要改其他IP)
开局域网方法
修改gameserver\config\network\server.ini
内的InternalHostname = 127.0.0.1
将127.0.0.1改为局域网IP(不需要改其他IP)


标签

免登录评论