Allow WAN/LAN access to Wampserver
Posted by: SRD (---.orsgroup.com.au)
Date: January 22, 2014 05:55AM

My Win7 computer has a computer name of "hostname", say.

How do I make it so that other people in the LAN/WAN can go to [hostname] ?

I have right-clicked on WAMPserver system tray icon, and selected "Put online".

Re: Allow WAN/LAN access to Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: January 22, 2014 10:59AM

Can you clarify please, do you want people to use your website in a intranet way i.e. only people inside your network, or do you want people on the internet to be able to use it? Or is it both?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: Allow WAN/LAN access to Wampserver
Posted by: SRD (---.lns1.wel.bigpond.net.au)
Date: January 22, 2014 11:00AM

Like an Intranet.

Re: Allow WAN/LAN access to Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: January 22, 2014 11:37AM

Probably the easiest way is to use your PC's IPAddress.

Of course you need to make sure that your PC has a static ip, so it does not change when you reboot.

People can then access your site using `192.168.0.10` for example if that was your static ip address.


Of course the best solution would be if your site runs a DNS server somewhere.
Then you could get the admins to create a nice domain name like `sitename.intranet` for your site and point that domain name to your PC's IpAddress.

Then of course you would need to change the Apache configuration a little to allow people in.
This change depends on how and where you have created your site, so I cannot help with that unless I know a little more about your environment.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: Allow WAN/LAN access to Wampserver
Posted by: SRD (---.orsgroup.com.au)
Date: January 23, 2014 05:13AM

If I use my computer's IP address in the browser, I receive:

403 Forbidden

You don't have permission to access / on this server.

Re: Allow WAN/LAN access to Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: January 23, 2014 10:50AM

So now you have to tell Apache that it is allowed to accept connections from those locations.

By default WAMP sets Apache to only allow connections from the PC running WAMPServer(Apache). So you dont get hacked before you even get started.


Edit your httpd.conf file ( using the menu links )

Look for this section

<Directory "d:/wamp/www/">

   ...

   ...

</Directory

You should see something like this inside the <Directory...> scope

If you are running WAMP 2.2.x
#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

Change it to include the whole subnet of your internal network like so :

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 localhost ::1
    Allow from 192.168.0
You will have to work out what subnet you are on and use just the first 3 quartiles to allow everyone.
Or you can be specific and us
    Allow from 192.168.0.100 192.168.0.101 ... etc




If you are running WAMP 2.4.x

#   onlineoffline tag - don't remove
    Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1
     Allow from ::1
     Allow from localhost


Change it to something like this. This also uses the correct Apache 2.4.x syntax for security
#   onlineoffline tag - don't remove
    Require local
    Require ip 192.168.0

Or being specific

#   onlineoffline tag - don't remove
    Require local
    Require ip 192.168.0.100 192.168.0.101

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Re: Allow WAN/LAN access to Wampserver
Posted by: SRD (---.orsgroup.com.au)
Date: January 31, 2014 03:11AM

That worked. Thanks for your help.

Sorry, only registered users may post in this forum.