janly 发表于 2006-2-6 02:06:32

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

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的高手帮帮忙。。谢谢。。

windgao 发表于 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服务器内网看不到,外网就可以!

.................
页: [1]
查看完整版本: linux下的CS服务器内网看不到,外网就可以!