阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
双线双IP游戏服务器的服务器端设置办法
来源:网络收集
首先要求服务器双网卡,俩个全部为固定ip,不使用路由器(使用路有的不知道有没有什么不同)。 下面的分别是两路外网IP的举例,本人的自己的IP就不说出来了,用这个作为例子行了。 如果你有更好的方法,可和我联系:
192.168.0.138是外网A 192.168.0.168是外网B
以传奇服务器端为例: ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- D:/Mirserver/Mir200/!servertable.txt 0 192.168.0.138 7200 1 192.168.0.138 7200 D:/Mirserver/Mir200/!runaddr.txt 192.168.0.138 D:/Mirserver/Mir200/!setup.txt 里面的IP全部用192.168.0.138 ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- D:/MirServer/gate_server/LoginGate7000 和 7001 2个 第一个: [server] Color=Red Title='login: 7000' ServerPort=5500 GatePort=7000 index=0 Server1=192.168.0.138 Server2= Server3= Server4= Server5= 第二个: [server] Color=Red Title='login: 7001' ServerPort=5500 GatePort=7001 index=0 Server1=192.168.0.168 Server2= Server3= Server4= Server5= ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- D:/MirServer/MUD2/Logsrv !addrtable.txt ;No space allowed ;Server Title Remote Public Gates... **传奇 Line1-255 192.168.0.138 192.168.0.138 192.168.0.138:7100 **传奇 Line2-255 192.168.0.168 192.168.0.168 192.168.0.168:7101 !serveraddr.txt 192.168.0.138 192.168.0.138 192.168.0.138 192.168.0.168 Logsrv.ini [server] DBServer=192.168.0.138 DBSPort=16300 FeePort=16301 LogPort=16302 ReadyServers=0 EnableMakingID=TRUE EnableTrial=FALSE CountLogDir=D:/mirserver/mud2/LoginSrv/CountLog/ WebLogDir=D:/mirserver/Share/GameWFolder/ FeedIDList=D:/mirserver/Share/Feed/FeedIDList.txt FeedIPList=D:/mirserver/Share/Feed/FeedIPList.txt [DB] IdDir='./IDDB/' D:/MirServer/gate_server/SelChrGate7100 和 7101 2个 第一个: [server] Color=Green Title='Gate30-7100' ServerPort=5100 GatePort=7100 SelPort=7201 index=0 Server1=192.168.0.138 Server2= Server3= Server4= Server5= 第二个: [server] Color=Green Title='Gate30-7101' ServerPort=5100 GatePort=7101 SelPort=7201 index=0 Server1=192.168.0.168 Server2= Server3= Server4= Server5= ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- D:/Mirserver/Mud2/DBServer下面 !serverinfo.txt 192.168.0.138 192.168.0.138 7200 192.168.0.168 192.168.0.168 7200 !addrtable.txt 192.168.0.138 192.168.0.168 DBSRC.INI [Setup] ServerName=**传奇 Port=6000 MapFile=D:/mirserver/Mir200/Envir/MapInfo.txt ViewHackMsg=1 [Server] ;游戏数据库管理配置 IDSAddr=192.168.0.138 IDSPort=5600 [DB] dir=D:/mirserver/mud2/DBsrv200/FDB IdDir=D:/mirserver/mud2/DBsrv200/FDB HumDir=D:/mirserver/mud2/DBsrv200/FDB FeeDir=D:/mirserver/mud2/DBsrv200/FDB Backup=D:/mirserver/mud2/DBsrv200/Backup connectDir=D:/mirserver/mud2/DBsrv200/Connection LogDir=D:/mirserver/mud2/DBsrv200/Log/ ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- 我是用翎风的RUNGATE的 D:/Mirserver/Mud2/RunGate/RunGate.ini,可以开3个 [server] Title=**传奇7200 GatePort=7200 ServerPort=5000 index=0 Server1=192.168.0.138 Server2=192.168.0.168 Server3= Server4= Server5= ListenAddr=192.168.0.138 GateAddr=0.0.0.0 [Reg] RegKey=0123456789 ServerAddr=192.168.0.138 ServerPort=65000 -----------------------------------------------------------------------------
|
|
[楼 主]
|
Posted: 2006-08-29 10:36 |
| |