I set up an Apache server on an old laptop last night (apache2) just to play around on. It worked fine on my laptop, and I could get web pages from it from other computers on my local network. After rebooting the computer, however, the Apache server is not visible on the local network.
nmap TCP connect(), Syn, and ping scans showed that the host was down. An nmap -PN scan, however, showed that the host is up and all 1000 scanned ports are filtered.
PHP, MySQL, and PhpMyAdmin are all still working perfectly on localhost, the only problem I can find is that nothing works on local network.
Thanks in advance for the help.
You havent said on your OS, but, there could be a local firewall, or, a change of IP (it could be DHCP) or DNS hasnt caught up properly with DHCP..
a netstat -a should tell you what ports are being listened on. Check its not just listening on 127.0.0.1
Related
I've already opened the port 80. It worked perfectly, but after some changes it left working. Webmin runs on a Raspberry Pi with Raspbian.
1. I tried to solve an ip issue, because my router changed my ip so quick that I had to update my ip on my Webmin server every time it changed.
img1
2. So I decided to change the ip to 127.0.0.1 in all of my servers. Like this:
img2
3. Then, cause now I could't access to my server from outside of my LAN. I tried to reset my eth0 ip again as it was in all of my servers (as 192.168.1.89), but it didn't work. I still can't access my http from outside.
4. I waited my eth0 ip to change to update it again (to put it instead of 127.0.0.1), but didn't work. I tried to do it like this: img3
As I said, it worked perfectly before changing the ip to 127.0.0.1, because my normal ip changes too fast (every 7 or 10 mins). I can access to my http server but only from my LAN.
Well, finally I found the solution. The problem was nothing about my Apache or Webmin configuration. It was about a problem with my router. Apparently it had a bug: The DMZ seemed as activated, but it really didn't (my router is a HUAWEI HG659).
Also, if you get this kind of problem, you should first check what ports are being used by your computer, and check if you have any firewall or program blocking that port.
I have netgear 1500 wifi DSL router having private IP 192.168.1.1. I am running apache 2.4 in my desktop PC having IP 192.168.1.2 and my laptop has an IP 192.168.1.3. While I try to access the apache server as http://192.168.1.2:80/index.html I get a message requested URL /index.html not found, while it shows up properly when I access is as localhost.
I have done port forwarding for port:80 and firewalls are stopped.
I have quickheal running in the same machine in which apache runs. Both machines are windows.
What do I need to do so that I can access the server from my laptop?
I have added the privileges through http.conf also.
I see another problem - when I ping the desktop machine, which runs the server, the request is timed out.
Thanks
The problem has been solved. Skype and antivirus are using port 80. Making apache listen to other port - like 8080 solved the problem.
I learned that apache "does not" share a port with other applications.
Hope someone else might be helped from this.
Sukalyan
Ok, here is my problem:
I am runing WampServer 2.5 on my windows 7 Home Premium PC and I have a TP-Link TL-WR642G v2 router updated to the latest official firmware (download site). I have forwarded port 80 to my pc (ip 192.168.1.111, static) and disabled all the firewalls (see images). When i turn on WAMP, and enter localhost or 127.0.0.1 or 192.168.1.111 or even my wan ip (93.103.90.XXX) everything connects and I get my test html page but when I enter my wan ip on any machine that is not connected to my router the page doesn't load - i don't even get 403 forbidden (and yes my wamp says server online an i have edited the httpd.conf). Also http://www.yougetsignal.com/tools/open-ports/ and http://www.whatsmyip.org/port-scanner/ say port 80 is closed/timed out. Everything worked fine a week ago and i could access my server from anywhere with my public ip. I also tried other ports but i get the same thing, tried WAMP 2.4 with no success. All i did from last week was downgrade from Ultimate to Home Premium and install the drivers of course (but I guess that has no effect) and upgraded my router firmware (linked above). Any idea why it doesn't work? Does anyone have the older firmware, so I can try downgrading to it?
Thank you for reading, David :O
If you haven't done so already; then change the Management port of the Router to something other than port 80. That way you aren't conflicting with the WampServer. This is more than likely the issue.
You shouldn't have to change anything in the Firewall as Virtual Servers will set a rule to allow the packets.
As a test can you try to open up other ports on your computer like SSH or Telnet. If you find the that forwarding settings work to these protocols then you know the issue is not with the Router or ISP, but with a firewall setting on the Computer.
You can use this site to see if your ports are open (if you are on the LAN): http://www.canyouseeme.org/
I have apache installed listening to 8888, and port 8888 oppened, due the fact that 80 and 8080 are blocked by my ISP. I have no firewalls running.
The page hosted on my computer, works from some proxies like http://www.webproxyonline.info/ for example, but doesnt work from some others, like zend2.com.
I also tested to access the page from 2 dedicated servers that I own, but without success. I can ping my computer IP, but when I type wget myip:8888 i get nothing.
I also tried to run the code file_get_contents('http://myip:8888'); but no success too.
What can be causing this problem?
thanks.
UPDATED: PROBLEM SOLVED.
The problem is that the firewall CSF on my dedicated server was blocking outgoing traffic to my ip.... I just added my ip to the alloed list...
Um, if you're actually binding localhost (that is, 127.0.0.1), then it shouldn't be accessible from other machines. That's how localhost works. You need to bind a actual external IP address for your machine.
I installed Apache with WAMP. I want to make my computer as a server for my web page for make some experiment on my web site.But I can`t open my server in Internet. I can see it in http://localhost/mysite/index.html but when I try to reach it in another computer like http://myserverip/mysite/index.html it says server not responding. I am using wireless router and also forwarded to my LAN ip.
A few ideas:
check that apache is bound to your PC's internal IP rather than just localhost - run netstat -an and verify that you have local address 0.0.0.0:80 not 127.0.0.1:80
check that you're definitely forwarding port 80 from the router to your PC
check that you're not firewalling off the traffic, i.e. make sure there's an exception in the windows firewall for port 80 (and 443 if you're using HTTPS), or a program exception for httpd, or even try turning off the firewall temporarily whilst debugging this
find out if your ISP is blocking this - some won't let you run web servers from your home connection; you could try a different web port to see if that helps?
try connecting from some other machine - there could be some proxy configuration that's upsetting looping back into your PC