Setup Web Server on Linksys Router.

gwgman

Member
Jul 31, 2001
47
0
0
I have a Linksys router. I am running an apache webserver, but it only works on other computers on my network connected to the router. I have DMZ host enabled to my computer. That is allowing me to send in mirc (because i had trouble w/ that i while ago, til i enabled dmz). Now how do i get it so others surfing the web or outside my network can connect to my server? If you know the steps, or a tutorial, please tell me
 

torreyk

Member
Aug 31, 2001
108
0
0
You need to have the PC running Apache using a staic IP address, then in the router look for something to the effect of Virtual Server, D-Link may use different terms for this. What you want to do is input the ip of your server in here along with 80 in the port # field. Then all requests to your router on port 80 will be sent to your PC. [*]http://support.dlink.com/faq/view.asp?prod_id=371 this link may explain better for ya.
 

Bleep

Diamond Member
Oct 9, 1999
3,972
0
0
What you need to do is to assign a static IP to your server box. The linksys router will do both static and dhcp at the same time.
You then go into the router configuration and forward the WAN to the LAN IP DO NOT use DMZ it opens all your ports. Just forward the IP to port 80 and only open port 80 and port21 in the router. What you are actually doing is forwarding the linksys ip which is 192.168.1.1 to your server box IP
When assigning the server box IP what you do is set the router dhcp to IP with the last 3 numbers over 100. Then assign the server ip 192.168.1.10. With apache you do not have to use virtual server if you are only going to run 1 server.
Bleep
 

gwgman

Member
Jul 31, 2001
47
0
0
Thanks Bleep and everyone else. The only problem is i really need step by step help, like click here then type this. Cause honestly, i dont know what im doing. I'm in the linksys router administration, i have enabled dmz to go to 192.168.1.2 which is my computer. If you can, do you think you could tell me step by step or something. My aol instant messenger name is malakai015

Also - http://www.dslwebserver.com/ didnt help.
I tried the port forwarding, but it didnt work. Is it cause i got DMZ hosting.
 

theXing

Member
Aug 15, 2001
143
0
0
Ensure that you have the right IP - then set it up through the administrator to send all activity on port 80 to your IP, try changing your subnet from 192.x.x.x to 10.x.x.x I haven't had much luck with the 192.... but that is jut me... can you give more information as to your settings? Don't put out your IP just incase some dummy comes across this and wants to check your vulnerabilities.... it happened to me, I got reamed because I put mine out in a chat room, but then I just shut off my router and got another IP.
 

atrowe

Banned
May 20, 2001
253
0
0
What sort of web connection do you have? Ten bucks says your ISP is blocking port 80. Try telling Apache to listen on a different port and accessing the site through that port. You can tell Apache what port to listen to by adding a few lines to httpd.conf. You need to restart Apache before the change will take effect. Then just put http://yoursite.com:port#/ in your browser and see if it comes up.