用网络router上网如何建server?如果把电脑和starhub提供的modem连接ip地址为218.202.0....就可以建立server
然后如果通过router,那么ip就是192.168.0....这个就不能建立server,请问这个ip是router给的吗?如何才能通过router建立自己的server?
谢谢[|^_^| (7-25 4:26, Long long ago)]
[ 传统版 |
sForum ][登录后回复]1楼
Em...去读一读CS2105和CS3103吧。[不告诉你 (7-25 7:36, Long long ago)] [ 传统版 | sForum ][登录后回复]2楼
one way of doing this.1.use 'fix mapping' function of the router to fix your ip address;(can also be done in Network Settings in your PC by manually inputing your ip, netmask, DNS; check these info by using 'ipconfig' under DOS)
2.use 'virtual server' function of the router to direct all the request for certain port to your ip.eg. set the 'service port' to be 2345, and service ip to your ip(set in step 1);
3.SAVE ALL SETTINGS, RESTART YOUR ROUTER(IMPORTANT STEP);the router address, say it is 218.202.23.45;
4.set up your server(whatever server it is) use your ip address(step 1) and port number(step 2);
5.the outside world can access your server by typing address like this: ftp://username:password@218.202.23.45:2345 for ftp(username:password optional,depend on your settings of the ftp);
and other ports for other services.
6.done.[好多了 (7-25 15:14, Long long ago)]
[ 传统版 |
sForum ][登录后回复]3楼
create a DMZ zone to expose one of your pcsBy keep in mind, for cable connection, the uplink is very slow.[鱽鳓 (7-25 16:25, Long long ago)] [ 传统版 | sForum ][登录后回复]4楼
(引用 鱽鳓:create a DMZ zone to expose one of your pcsBy keep in mind, for cable connection, the uplink is very slow.)oh, one note-the IP is dynamically changing[鱽鳓 (7-25 16:26, Long long ago)] [ 传统版 | sForum ][登录后回复]5楼