烈焰开外网教程
1 修改D:\XYLY\Server\Server\GameServer\conf文件里的realms.conf 的 域名为你的域名 目测写IP可能开不了外网!
开外网服务端realms.conf修改
如下:
<LogonServer Address = "127.0.0.1" Port = "9555" Name = "Default Logon" RealmCount = "1">
<MonitorServer Address = "0.0.0.0" Port = "18800" Enable = "0">
<WorldDatabase Hostname = "127.0.0.1" Username = "root" Password = "123456" Name = "gamedb_s22t25" Port = "3306">
<Realm1 Name = "xiaoyi"
Address = "wnt2014.xicp.net:10009"
Icon = "PVP"
Population = "1.0"
TimeZone = "1">
2 修改D:\XYLY\Server\wwwroot文件里 game1.php 的 域名为你的域名 目测写IP可能开不了外网!
开外网客户端网站文件 game1.php 修改
如下:
return "http://127.0.0.1/?server_ip=<?php echo $_SERVER['SERVER_NAME']?>&server_port=9001&pass_user_name=<?=$user?>&encrypted_string=<?=$password?>&server_id=xiaoyi&source=0&sub_source=&flags=4&time=1392385580&agent=9377&server=292&is_client=false";
}
function getCDNPath()
{
//一区
return "http://127.0.0.1/res";
}
function getClientPath()
{
return "http://127.0.0.1:843/zhizun.rar";//获取登陆器下载地址
测试外网端为3。0
服务器测试外网域名 花生壳域名
路邮器
路邮器外网方法如上!
要开放端口 10009 80 9000 9555 843 9001
页:
[1]