在#################################################
# CONNECTIONS AND DIRECTORIES
#
主语句段下,找到InstanceServerPort = 8086敲回车键,加入以下语句:
#
# BattlenetPort
# Description: TCP port to reach the auth server for battle.net connections.
# Default: 11190
BattlenetPort = 11190
#
# LoginREST.Port
# Description: TCP port to reach the REST login method.
# Default: 8081
LoginREST.Port = 8081
#
# LoginREST.ExternalAddress
# Description: IP address sent to clients connecting from outside the network where bnetserver runs
# Set it to your external IP address
# Default: 192.168.5.103
LoginREST.ExternalAddress = 192.168.5.103
#
# LoginREST.LocalAddress
# Description: IP address sent to clients connecting from inside the network where bnetserver runs
# Set it to your local IP address (common 192.168.x.x network)
# or leave it at default value 127.0.0.1 if connecting directly to the internet without a router
# Default: 192.168.5.103
LoginREST.LocalAddress = 192.168.5.103
#
# LoginREST.TicketDuration
# Description: Determines how long the login ticket is valid (in seconds)
# When using client -launcherlogin feature it is recommended to set it to a high value (like a week)
# Default: 3600
#
# LoginREST.Port
# Description: TCP port to reach the REST login method.
# Default: 8081
LoginREST.Port = 8081
在#######################################################
# IPC SETTINGS
#
主语句段下面,红色部分换成你的内网IP地址,替换192.168.5.103
# BnetServer.Address
# Description: Determines IP address of battle.net server to connect to.
# Default: 192.168.5.103
#
BnetServer.Address = 192.168.5.103
#
# BnetServer.Port
# Description: Determines port to use when connecting to battle.net server.
# Default: 1118
#
BnetServer.Port = 1118
到这里关闭worldserver.conf保存,第一步完成
然后到要联网的电脑客户端,(是客户端,不是服务端下)同样用写字板打开\client\WTF\下Config.wtf文件,
修改替换第一行
SET portal "127.0.0.1:18199"
把127.0.0.1改成你服务端电脑的ip地址,后面一定要加上:18199,不能丢双引号,要用英文标点,不能中文输入状态,
示例:
SET portal "192.168.5.103:18199"
关闭并保存Config.wtf文件,
最后一步,启动服务端,成功以后
打开Navicat for MySQL数据库连接软件,新建连接,随便起个名字,
账号密码都是trinity,端口改成3316
进去以后找到legion_auth主表,找到realmlists双击打开,
把两个addresss填入你的内网ip地址,第一个应该是公网IP地址,我这里全改成一样的内网地址了,
需要开外网的可以在第一个这里改。