杀气丶 发表于 2014-5-8 21:02:55

天堂2单机服务端开外网整理篇

天堂2单机服务端开外网整理篇
L2J篇
static/image/hrline/3.gif
首先修改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>

杀气丶 发表于 2014-5-8 21:12:39

俄罗斯类服务端
static/image/hrline/3.gif

我们习惯将俄语的服务端统称为国外版服务端。因为国内做这个汉化开源的很少....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)

杀气丶 发表于 2014-5-8 21:13:33

其他开外网方法有待发现添加!!!

我本逍遥 发表于 2015-2-26 09:16:06

学习中。。。。。。。。。。。。

wbflike 发表于 2019-1-16 18:18:41

学习中 谢谢了。

carttlew 发表于 2021-5-9 06:27:15

这个还是很ok了

奇兵丶 发表于 2022-5-5 15:25:20

谢谢分享
页: [1]
查看完整版本: 天堂2单机服务端开外网整理篇