|
|
|
|
![]() ![]() |
Aug 27 2006, 09:18 PM
Post
#1
|
|
|
S.P.A.M.S.W.A.T. Group: Members Posts: 814 Joined: 22-January 05 From: San Antonio, Texas (No, I'm not dumb. I just moved here...) Member No.: 2,284 |
I have an Apache server set up on my computer so that I can test my scripts without uploading them. The computer connects to the Internet through a wireless router. I can access my server fine by going to "localhost" (of course), but when I try to access it on any computer in the network by going to my modem's IP, my router's setup page shows up. However, this problem does not exist when I do it from a computer outside the network. I have tried forwarding Inbound port 80 to this computer, but it still doesn't work. I want to see the server's page using other computers behind the same router, so simply using localhost isn't an option for me.
So does anyone know why this problem exists? |
|
|
|
Aug 28 2006, 01:33 AM
Post
#2
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 |
A few questions to start with.
It sounds like it is probably a firewall issue to me but if you have a DMZ setting that you can point to the computer running the server, then you'll know for sure. This will basically open ALL inbound and outbound ports to that computer and all requests will go to that computer as a result. If you still cannot access the server, then it is a setting on that machine. WinXP SP2 has an advanced firewall package with it that has to be configured to allow your server to be seen by other computers. Any other software firewall will need to have an exception for port 80 as well. vujsa |
|
|
|
Aug 29 2006, 12:39 PM
Post
#3
|
|
|
S.P.A.M.S.W.A.T. Group: Members Posts: 814 Joined: 22-January 05 From: San Antonio, Texas (No, I'm not dumb. I just moved here...) Member No.: 2,284 |
1. I've disabled the Windows Firewall on the computer because it's really annoying at times.
2. Oh, right, I forgot about doing that. OK, now I've solved the problem about accessing the server on the local network. 3. DMZ... Isn't that the option that puts the computer outside of the router? The warning on the settings page looked pretty scary to me, so I left the setting at default. 4. I'm running miniApache on Windows. Since you're an expert here, vujsa, let's try to solve the problem about why we can't access the server by its public IP. Even though the local IP works, I still want to know what my problem is. P.S. I just tried the DMZ settings and pointed it to this computer. It didn't work. This post has been edited by szupie: Aug 29 2006, 12:40 PM |
|
|
|
Aug 29 2006, 03:48 PM
Post
#4
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 |
Well, I'm not sure why you can't see your page from your LAN using your WAN IP address, because I can see it ok.
Perhapes your router assumes that if you are trying to access the WAN IP address from the LAN that you want to update the router settings. You should put an index file in your root to prevent the contents being shown! So what is "Hypercubical Animations"! Well, I'll have to guess that this is resolved now. vujsa |
|
|
|
Aug 29 2006, 10:44 PM
Post
#5
|
|
|
NiGHTFoX - Hiding in the dark Group: Members Posts: 680 Joined: 3-April 05 Member No.: 3,584 |
Here's a guide that I've had since early 2005 about running your own web server. It's located here: http://members.lycos.co.uk/brisray/web/server2.htm
The guy who wrote it had the same exact problem you appear to be having as well. [N]F EDIT: Page 2 has what you're looking for, link above modified to take you to page 2 This post has been edited by nightfox: Aug 29 2006, 10:54 PM |
|
|
|
Aug 30 2006, 10:41 PM
Post
#6
|
|
|
S.P.A.M.S.W.A.T. Group: Members Posts: 814 Joined: 22-January 05 From: San Antonio, Texas (No, I'm not dumb. I just moved here...) Member No.: 2,284 |
Oh, thanks, nightfox! I could never have gotten to that page with Google... I guess that's what Astahost is for!
In case the site goes down in the future, all you have to do is edit the hosts file, which is located at c:\windows\system32\drivers\etc\hosts for Windows (or System Folder for Mac). Add "YourLocalIPAddress YourDomainName" without quotes. I've tried doing "MyLocalIPAddress MyPublicIPAddress", but I guess the second part couldn't be an IP address. Here's the reason for my problem: QUOTE Certain routers do not allow a machine 'behind' the router (i.e. on the local area network) to access itself, or to access any other machine 'behind' the router using a domain name... The router gets confused by this. Well, I'm not sure why you can't see your page from your LAN using your WAN IP address, because I can see it ok. Yeah, I can see it fine when I try to see it using a computer outside my network, I just couldn't do that within the network. That was the weird thing.QUOTE You should put an index file in your root to prevent the contents being shown! Yeah, I know that, but I'm lazy and I wanted to access the pages using the hyperlinks. It's an equivalent exchange for the danger I've put myself into. This post has been edited by szupie: Aug 30 2006, 10:48 PM |
|
|
|
Aug 31 2006, 01:44 AM
Post
#7
|
|
|
NiGHTFoX - Hiding in the dark Group: Members Posts: 680 Joined: 3-April 05 Member No.: 3,584 |
Oh, thanks, nightfox! I could never have gotten to that page with Google... I guess that's what Astahost is for! Yeah, I found that site when I was trying to setup my own web server. I remember it took a while to find and it was so information filled that I printed out every part because it is such a great guide. Though I've never really setup a web server on Windows 2000 (I jumped right into a Linux server), I kept the guide for some reason. Best 28 page print job ever! Even if more than half of it is out of date, it's still a trusty guide! I've read it over and over. [N]F |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 03:01 PM |