搜索
查看: 1687|回复: 5

请教制作服务器的高手!

[复制链接]
匿名  发表于 2004-4-8 11:38:27 |阅读模式 来自 Invalid
我的是铁通ADSL网络,可是是虚拟拨号的,IP是铁通给的固定IP,也就等于局域网IP一样,而且我又把自己的IP连了路游器,又做了一组局域网IP,我就在这组局域网IP内想做服务器,请问高手能做吗?
发表于 2004-4-8 11:44:59 | 显示全部楼层 来自 中国–福建–龙岩
可以,你指定hlds运行的IP就可以了.
:3:
回复

使用道具 举报

匿名  发表于 2004-4-8 11:49:33 来自 Invalid
Post by 金闪闪
可以,你指定hlds运行的IP就可以了.
:3:


运行的IP是什么?

您能说的详细点吗?我第一次想了解服务器知识呢!
发表于 2004-4-8 13:47:39 | 显示全部楼层 来自 中国–广东–佛山–禅城区
端口映射你的IP.
在HLDS运行时候加入  +ip xxx.xxx.xxx.xxx  
xxx.xxx.xxx.xxx  =你的外网IP
你是不是想这样?
回复

使用道具 举报

匿名  发表于 2004-4-8 15:03:23 来自 Invalid
在HLDS运行时候加入 +ip xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx =你的外网IP

我不知道我的外网IP啊
发表于 2004-4-9 10:11:27 | 显示全部楼层 来自 中国–北京–北京
呵呵, 可能大家有点误解.
你的HLDS应该是运行在LAN上. 它是没有什么外网IP的.
路由器上有两个口, 一个接在LAN, 一个接ADSL. ADSL口上是有外网IP的.

现在需要做的是:
HLDS运行起来, 比如说IP是 192.168.0.4

路由器上外网IP比如说是 202.96.0.222, 那么在路由器上要加端口映射
所有访问 202.96.0.222:27015 的, 直接映射到 192.168.0.4:27015

对外宣传你的服务器地址就是 202.96.0.222:27015
这样你的服务器LAN上 和INTERNET上都能访问.

当然, 如果想让INTERNET用户搜索到你的服务器, 还有开放更多的端口,
CS用到的端口

Client
======
TCP 6003:
Outgoing connectivity to this port on remote destinations. Used for
chat in the HL browser.

UDP 27011:
Outgoing connectivity to this port on remote destinations. Used for the
'custom game' mod browser.

UDP 27005:
Incoming connectivity to this port (or whatever port the client has
changed this to, if not using the default). Used for game traffic
(including voice) between client and server.


Server
======
TCP 7002:
Outgoing connectivity to this port on remote destinations. Used for WON
auth.

UDP 27010:
Outgoing connectivity to this port on remote destinations. Used for
advertising a server on the master lists for server browsers.

UDP 27011:
Communicating with the BanList Server from YOUR Server
Was formerly 27013 - much in/out traffic too

UDP 27015:
Incoming connectivity to this port (or whatever port the server had been
changed to, if not the default). Used for all client/server game
traffic (including voice), server info requests, etc.
回复

使用道具 举报

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

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