Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tut] WAN Network online server

Status
Not open for further replies.
Joined
Apr 16, 2007
Messages
441
Reaction score
204
Credits to rogan12 for finding this. i have not tested this yet. this was copied and pasted off the chinese site, and edited for better understanding.
Guide:

Where to change the Ip adress to make the server visible on WAN.




1.D:\game\server_config\db下保留world.ini,永久内服.ini兩個文件其他刪除

1-1.world.ini設定

[section]
id = 900100

[world]
id = 900101 ;游戏世界ID
name = 永久内服

[ip]
db_server = ((外網ip)) ( external IP )

[port]
db_server = 5005

[golden_code]
db_server = 90100891
game_server = 292


[gm_server]
ip = ((外網ip)) ;GMServerIP ( external ip )
port = 6600 ;GMServer端口


[display]
width = 800
height = 600

1-2.永久内服.ini設定(只要是讀取帳號密碼一切127.0.0.1) ( don't change )

[world]
id = 900101 ;游戏世界ID
name = 永久内服 ;游戏世界名称

[db_game]
host_name = 127.0.0.1 ;請勿更改永久127.0.0.1 ( don't change )
user_name = root
password = 123456
db_name = loong_base
port = 3306

[db_log]
host_name = 127.0.0.1 ;請勿更改永久127.0.0.1 ( don't change )
user_name = root
password = 123456
db_name = loong_log
port=3306

2.D:\game\server_config\login保留三個文件center_proof.ini,gm_access.ini,login.ini其他刪除

2-1.center_proof.ini

[server]
ip = ((外網ip)) ( external ip )
port = 7777

2-2.gm_access.ini

[switch]
on = 0 ;开关 0是关 1是开

[account]
num = 1 ;gm用户数
name1 = test99 ;gm用户名字


[test99]
num = 1 ;该gm用户可使用ip数
ip1 = ((外網ip)) ;该gm用户可使用ip

2-3.login.ini

[display]
width = 800
height = 600

[version]
version = 1.2.2.0

[section]
id = 900100

[zone_server]
num = 1

[zone_session] ;和ZoneServer通信参数
port = 5050 ;和LoongWorld通信的端口

[player_session] ;和客户端通信参数
port = 4200 ;和客户端通信的端口

[zone0]
id = 900101 ;游戏世界ID
name = 永久内服 ;游戏世界名称
auto_seal = 1 ;反外挂程序是否自动封号

[database]
ip = 127.0.0.1 ;請勿更改永久127.0.0.1 ( don't change )
user = root ;用户名
psd = 123456 ;密码
name = login
port = 3306

[world_state]
update_time = 5000; ;世界人数状态DB更新时间(毫秒)
insert_time = 10000

[gm_server]
ip = ((外網ip)) ;GMServerIP
port = 6600 ;GMServer端口

[golden_code]
login_server = 300 ;LoginServer的金色代码
zone_server = 292 ;LoongWorld的金色代码

[proof]
policy = 0 ;验证策略,0——普通策略 1——中央激活策略


4.D:\game\server_bill_config只保留config.ini其他刪除

[window]
width = 800 ;窗口大小
height = 600

[section]
id = 90100 ;大区ID

[server]
port = 7123 ;本地供loongworld连接的端口

[bill_session]
ip = ((外網ip) ;网站ip和端口
port = 6666

[login]
db_host = 127.0.0.1 ;login数据库相关信息(永久127.0.0.1) ( don't change )
db_user = root
db_psd = 123456
db_name = login
db_port = 3306

[world]
num = 1 ;world数量

[world_0]
id = 90101 ;worldid
db_host = 127.0.0.1 ;world数据库相关信息(永久127.0.0.1) ( don't change )
db_user = root
db_psd = 123456
db_name = loong_base
db_port = 3306
 
Newbie Spellweaver
Joined
Jun 13, 2010
Messages
46
Reaction score
11
hm... I think setting up a pserver on a few small vds will be cool.

[db_game]
host_name = 127.0.0.1
user_name = root
password = 123456
db_name = loong_base
port = 3306
host_name - ip of main db.
user_name - login of your mysql user
password - mysql password
db_name - db name :D
port - port :D
[db_log]
host_name = 127.0.0.1
user_name = root
password = 123456
db_name = loong_log
port=3306
the same as previous
[login]
db_host = 127.0.0.1
db_user = root
db_psd = 123456
db_name = login
db_port = 3306
the same as first
[database]
ip = 127.0.0.1
user = root
psd = 123456
name = login
port = 3306
...
[world_0]
id = 90101
db_host = 127.0.0.1
db_user = root
db_psd = 123456
db_name = loong_base
db_port = 3306
...
p.s. id - world id
 
Last edited:
Newbie Spellweaver
Joined
Apr 2, 2011
Messages
36
Reaction score
5
Is there someone successful to make this server public? Can you show me how to do that?
 
Initiate Mage
Joined
May 27, 2011
Messages
4
Reaction score
0
I want 2 LAN connection between Computer A and Computer B to play Loong
A computer with ip: 172.16.8.3
and
B computer with ip: 172.16.8.5
A computer as a server
t have to edit the what and where for the two computers to connect and play together
Thanks
 
Newbie Spellweaver
Joined
Jan 18, 2008
Messages
22
Reaction score
0
Use for DB And LOGIN IP - B and FOR GAMESERVER IP - A
 
Newbie Spellweaver
Joined
Jun 16, 2011
Messages
9
Reaction score
0
I'm follow instruction on top, but i my client can't connect my server. WAN or LAN can't connect.
 
Newbie Spellweaver
Joined
Jun 16, 2011
Messages
9
Reaction score
0
Thanks the info, now can connect server. nice info
 
Newbie Spellweaver
Joined
Dec 26, 2008
Messages
98
Reaction score
2
Anyone can post the proper guide how to make the server public... Proper guide would be much appreciated.. Thanks in Advance...

Ragezone Rocks!
 
CPP/C#/PHP/ASM
Joined
Apr 7, 2009
Messages
452
Reaction score
189
yea totaly worng.
already managed to get my server online + register page and launcher working good.
 
Skilled Illusionist
Joined
Aug 15, 2006
Messages
322
Reaction score
69
yea totaly worng.
already managed to get my server online + register page and launcher working good.

It's good for you, that you managed to get your server online.
On the other hand why bother telling this, and not sharing how to do it, since i can't see anything useful in this reply. I know rz is full of people only leeching, and that will always be that way. With that in mind, people who have found the solution could as well write a foolproof guide, how to make cert /auth work.

Don't take this personally, but i hate meaningless posts.

regards
rogan12
 
CPP/C#/PHP/ASM
Joined
Apr 7, 2009
Messages
452
Reaction score
189
lol the big main part of the answer inside this forum but i will make a little guide since i'am at a hotel and got free time ;D
i will public it as a new theard okay .
dont say i'am a penis XD
 
Status
Not open for further replies.
Back
Top