天堂Ⅱ单机开外网的设置教程

来源: 作者: 点击:
各位观众注意:
此方法只适合外网用户.如果您是内网拥护请进陆游器开启DMZ主机!


confignetwork跟l2j-loginserverconfignetwork 這2個子目錄 找到network 用筆記本打開它




這是confignetwork
# -----------------
# Connection Config
# -----------------
# 邦定游戏服务器IP和端口, 用 * 邦定所有IP.
GameserverHostname = 0.0.0.0
GameserverPort = 7777

# 这个是外网设置, 外网玩家客户端IP需与此相同,所以它必须是连接的外网IP
# 如果此IP由登入服务器决定请填 * 号.(外网要改)
ExternalHostname = 把这里改成你的外网IP即可(去www.ip138.com查)

# 客户端IP设定要与下面相同, 所以以下必须为本地IP.
# 如果此IP由登入服务器决定请填 *(外网要改)
InternalHostname = 127.0.0.1

InternalNetworks =
# Define optional networks and router IPs
# IP (200.100.200.100) or fully qualified domain name
# (google.com) that resolves to an IP (use ping to determine if a domain resolves).
# Format: ip,net/mask;ip,net/mask,net/mask
# (mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0 would be 192.168.*.*)
# Note: keep InternalNetworks and OptionalNetworks blank for compatibility with older login server
OptionalNetworks =

# --------------
# Port Forwading
# --------------
# 登陆服务器IP和端口
LoginPort = 9014
LoginHost =127.0.0.1
# ------------------------
# Section: Network Options
# ------------------------
# Network traffic optimization: minimum time between sending char's hp/mp status update packet.
NetworkTrafficOptimization = false
NetworkTrafficOptimizationMs = 1100

# how character will be logged out on //kick command
# Options: 1 - closeclient - closes client: WARNING: this method sometimes crash client :P
# 2 - relogin - send client to relogin screen
KickType = relogin

# ----------------
# Section: Packets
# ----------------
# Packet LifeTime in miliseconds, 0 - disabled feature
PacketLifeTime = 0

# Packet ExecutionTime in milliseconds, 0 - disabled feature
PacketExecutionTime = 0

# -------------------------
# Section: Flood Protection
# -------------------------
# if enabled players which send more then PACKETLIMIT packets in PACKETTIMELIMIT ms will get kicked
# warning not tested made a quickhack for squeezed :)
FloodProtection = false
PacketLimit = 500
PacketTimeLimit = 1100


修改完毕保存


然后开启gameserver和loginserver

好了那么外网就开启完毕了


现在到了客服端文件的时候了

你要打开 天堂2目录/system里面的解加密L2.INI文件.exe(前提是你能单机玩)

运行之后会弹出一个记事本



把里面的127.0.0.1改成你的外网IP
然后保存

你就可以把SYSTEM发给你的朋友了.进游戏的方法:运行SYSTEM里面的L2.EXE
栏目列表