lk1986
圣骑士
圣骑士
  • UID64
  • 发帖数86
  • QQ15151515
  • 社区居民
  • 原创写手
阅读:2012回复:3

变更游戏服务端端口

楼主#
更多 发布于:2019-03-05 10:00
可以使服务器更安全,我们将修改其服务器端口:


打开_network/msghdr.h
查找如下代码:


PHP代码
#define    FUNCTYPE_CURRQUEST        (WORD)0x0027


下面就是游戏服务端所用的游戏端口,变更为自己需要的即可,避免使用已经公开的端口
PHP代码:
// port num
#define    PN_PATCHSRVR    1100
#define    PN_WORLDSRVR    2000
#define    PN_CERTIFIER    23000
#define    PN_CORESRVR        4000
#define    PN_CACHESRVR    5400
#define    PN_DBSRVR_0        7000    // l
//#define    PN_DBSRVR_1        7100    // w
#define    PN_DBSRVR_1        24000    // w
#define PN_DBSRVR_2        7200    // core
#define    PN_LOGINSRVR    28000
#define    PN_PATCH_DISTRIBUTOR_0    9000
#define    PN_PATCH_DISTRIBUTOR_1    9100


#define    PN_MONITOR_0    11000
#define    PN_MONITOR_1    11001
#define    PN_MONITOR_2    11002


#define    PN_ACCOUNTSRVR_0    12000
#define    PN_ACCOUNTSRVR_1    12001
#define    PN_ACCOUNTSRVR_2    12002


#define    PN_ACCUMULATOR        13000


#define    PN_ADBILL        29000


#define PN_COLLECTION    26000


变更之后重新编译所有程序
喜欢1 评分0

最新喜欢:

liulinkanliulin...
游客

返回顶部