搜索
查看: 1837|回复: 2

linux下的CS服务器内网看不到,外网就可以!

[复制链接]
发表于 2006-2-6 02:06:32 | 显示全部楼层 |阅读模式 来自 中国–广东–佛山
quicklinux as4 系统  没开任何防火场 单网卡 局域网内ip:192.168.1.9,网关上作端口映射
用hlsw看,无论公网ip还是局域网ip都能看得到
但进游戏里面,只能在internat上看得得到,局域网是看不到的,奇怪?
启动参数
#/bin/bash/
export ld_library_path=/hlserver/hlds_|:$ld_libary_path
./hlds_run -game cstrike +ip 192.168.1.9 -pingboost 3 +maxplayers 12 -insecure -port 27015 +map de_dust2 -noipx -nojoy -console
希望有linux&CS的高手帮帮忙。。谢谢。。
发表于 2006-2-6 03:22:27 | 显示全部楼层 来自 中国–广东–深圳

回复: linux下的CS服务器内网看不到,外网就可以!

#/bin/bash/
export ld_library_path=/hlserver/hlds_|:$ld_libary_path
./hlds_run -game cstrike +ip 192.168.1.9 -pingboost 3 +maxplayers 12 -insecure -port 27015 +map de_dust2 -noipx -nojoy -console


修改为以下代码测试看看结果
#/bin/bash/
export /usr/home/=./hlserver/hlds_|
./hlds_run -game cstrike -pingboost 3 +maxplayers 12 -insecure -port 27015 +map de_dust2 -noipx -nojoy -console


或者是
#/bin/bash/
export ./hlserver/hlds_|
./hlds_run -game cstrike +ip 192.168.1.9 -pingboost 3 +maxplayers 12 -insecure -port 27015 +map de_dust2 -noipx -nojoy -console



以前我所使用的正确脚本之一,请按照以下格式模拟写一份脚本启动.
#/bin/bash/
export root/hlds_l
cd /root/hlds_l
/root/hlds_l/hlds_run -game cstrike -port 27016 -insecure +sv_lan 1 +maxplayers 32 +map de_aztec -nomaster &  


+ip xxx.xxx.xxx.xxx  加不加都无所谓的.

通过google.com 搜索关键词:windgao

找下我以前的文章吧.里面有详细的介绍的,不坊参考参考.
回复

使用道具 举报

发表于 2006-2-7 12:11:08 | 显示全部楼层 来自 中国–天津–天津–南开区

回复: linux下的CS服务器内网看不到,外网就可以!

.................
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表