Wamp Server: Online but inaccessible from outside

微笑、不失礼 提交于 2019-12-01 13:08:21

Re: Static IP. That comment was supposed to mean that Your PC running the WAMPServer i.e. Apache should have a static IP, so that when you reboot your PC or your router it always gets the same IP address so that the Port Forwarding from your router to your webserver PC always remains the same and therefore the port forwarding always forwards to the correct PC inside your internal network.

In this section:

<Directory "c:/wamp/www/"> 
    Options Indexes FollowSymLinks 
    AllowOverride All 
    Require all granted 
    # onlineoffline tag - don't remove
    Require all granted 
</Directory> 

You have this statement Require all granted occuring twice, you only need it once.

Apache 2.4.2 is IPV6 aware so it should be quite happy accepting connections in the IPV6 range.

You could check your Apache Listen directive, it is possible that you have something like this in the httpd.conf file

Listen 0.0.0.0:80

The 0.0.0.0 part will tell Apache to only listen on the IPV4 network. If that is the case change it to

Listen 80

So that it listens to both IPV4 and IPV6.

Or

Listen 0.0.0.0:80
Listen [::0]:80

Also does your router support IPV6? If not then any external connections from the IPV6 range will not be accepted by your router, and therefore of course those connections will not make it past your router. Check that your router is IPV6 capable and if it is that you have IPV6 turned on, if it is an optional feature!

Ranjit

A simple step it will work:

Change the following property: Require all granted

Now restart all services and access your box from the outside.

user2498927

I just put the onlineoffline tag as a comment and it worked :

#   onlineoffline tag - don't remove
 Require local

Just get past the warning and comment this one

#   onlineoffline tag - don't remove
# Require local

Optional : You can add, just to be sure

Order Allow,Deny
Allow from all

Worked for me with both.

I found the solution thanks to the link at the bottom of this post : How to allow remote access to my WAMP server for Mobile(Android) on the page : https://gist.github.com/samvaughton/6790739

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!