First of all, I read at least 20 articles about this topic, and not one of them can match up the scenario and I screwed up the process numerous times. So I turn help by offering my specific scenario if any help will be appreciated.
Laptops or other devices are connected through a wireless router.
I've tried:
- Enable Port 80 on firewall. nothing happened.
- Run
ping
,ipconfig
and tried IPv4 address there, denied access or bring me to verizon (my ISP), router config page. - Tried config Apache, was a mess, never get all the authorization setup in numerous posts and tried one of promising one, which crashed my WAMP, have to went through all the trouble and reinstall.
What I really tried to accomplish is really simply allow all users connect to that wireless router be able to acces my Win8 hosted WAMP sites.
I wonder if there is any specific steps that I can walk through to make it really work?
WAMP 2.4 on Win8.1. Laptop host local sites.
See the end of this post for how to do this in WAMPServer 3
For WampServer 2.5 and previous versions
WAMPServer is designed to be a single seat developers tool. Apache is therefore configure by default to only allow access from the PC running the server i.e. localhost or 127.0.0.1 or ::1
But as it is a full version of Apache all you need is a little knowledge of the server you are using.
The simple ( hammer to crack a nut ) way is to use the 'Put Online' wampmanager menu option.
This however tells Apache it can accept connections from any ip address in the universe. That's not a problem as long as you have not port forwarded port 80 on your router, or never ever will attempt to in the future.
The more sensible way is to edit the httpd.conf file ( again using the wampmanager menu's ) and change the Apache access security manually.
This launches the httpd.conf file in notepad.
Look for this section of this file
Now assuming your local network subnet uses the address range 192.168.0.?
Add this line after
Allow from localhost
This will tell Apache that it is allowed to be accessed from any ip address on that subnet. Of course you will need to check that your router is set to use the 192.168.0 range.
This is simply done by entering this command from a command window
ipconfig
and looking at the line labeledIPv4 Address.
you then use the first 3 sections of the address you see in there.For example if yours looked like this:-
You would use
UPDATE for Apache 2.4 users
Of course if you are using Apache 2.4 the syntax for this has changed.
You should replace ALL of this section :
With this, using the new Apache 2.4 syntax
You should not just add this into
httpd.conf
it must be a replace.For WAMPServer 3 and above
In WAMPServer 3 there is a Virtual Host defined by default. Therefore the above suggestions do not work. You no longer need to make ANY amendments to the
httpd.conf
file. You should leave it exactly as you find it.Instead, leave the server
OFFLINE
as this funtionality is defunct and no longer works, which is why theOnline/Offline
menu has become optional and turned off by default.Now you should edit the
\wamp\bin\apache\apache{version}\conf\extra\httpd-vhosts.conf
file. In WAMPServer3.0.6 and above there is actually a menu that will open this file in your editorjust like the one that has always existsed that edits your
httpd.conf
file.It should look like this if you have not added any of your own Virtual Hosts
Now simply change the
Require
parameter to suite your needs EGIf you want to allow access from anywhere replace
Require local
withIf you want to be more specific and secure and only allow ip addresses within your subnet add access rights like this to allow any PC in your subnet
Or to be even more specific
Inside alias folder you will see some files like phpmyadmin,phpsysinfo,etc...
open each file, and you can see inside file some commented instruction are give to access from outside ,like to give access to phpmyadmin from outside replace the lines
I have some experiences in Wamp 3.0 and Apache 2.4 .
After all works do this steps:
1- Disable nod32.
2- Add this line to
<VirtualHost *:80>
block inhttpd-vhosts.conf
file:if you use Windows and if you do all comments in above ,
You can check your network and sharing center.
Network and Sharing Center -> Advanced sharing settings ->Home or Work Profile Change
Thanks good work!
In WAMPServer 3 you dont do this in
httpd.conf
Instead edit
\wamp\bin\apache\apache{version}\conf\extra\httpd-vhost.conf
and do the same chnage to the Virtual Host defined forlocalhost
WAMPServer 3 comes with a Virtual Host pre defined for
localhost
What finally worked for me is what I found here:
http://www.codeproject.com/Tips/395286/How-to-Access-WAMP-Server-in-LAN-or-WAN
To summarize:
set Listen in
httpd.conf
:Listen 192.168.1.154:8081
Add Allow from all to this section:
<Directory "cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>
Set an inbound port rule. I think the was the crucial missing part for me: