I have to start with a warning.
Remember it is not recommended to use WAMPServer as web facing web server. Unless you really know what you are doingSecurity has to be a
Major consideration. If you dont know Apache and Windows well enough to ensure Apache runs in a secure environment, you are asking for trouble, and I have to assume this means YOU as you are asking this question. The default configuration of WAMPServers Apache is designed to be used by a developer who's PC is protected behind a router, so is not visible on the internet.
So no comebacks to me or WAMPServer, if you get hacked!!!!Also there is a resource issue when using a desktop Windows Operating system! As Windows 7/8 only allow only a Maximum of 20 external connections, and earlier versions allow even fewer.
Anyway my solution for this, assuming you are just wanting to allow a friend or client to view the site prior to putting it live on a professionally managed host is :-
Get a Dynamic DNS domain name, because who wants to try and remember an ip address.I use DYNDNS but they do charge a small fee.
I believe NOIP still allow one dynamic dns domain name for free, but dont quote me on that.
If you do this you will get a domain name that looks a little funny but it will be more memorable than an ip address. They normally look something like this
tjboy.noip.netin other words they look like a subdomain of one of their domain names which of course they are.
They normally give you a little app to download as well. This should be running all the time and it checks your routers WAN ip address and when it changes it updates their DNS server accordingly so people can still find you if you have to reboot your router and you WAN ip address changes
This is another benefit of using a Dynamic DNS service as you dont have to update your friends/clients with a new ip address after any changes to your ip addressSo now you have a domain name, and it is pointing to your routers WAN Ip Address.
You have Port Forwarded port 80 on the router to point to the PC running WAMPServer.
So you have to let your Apache know what to do with this domain name when it sees it in a url.
Of course this means creating a
new Virtual Host definition.
This tells Apache what to do when it sees the domain name i.e. the directory to server files from and which ip's are allowed access to this domain.
So lets assume for examples sake, you have the Dynamic Domain name
tjboy.noip.netSo create a Virtual Host for that domain name
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/wpsite"
ServerName tjboy.noip.net <-- the domain name
<Directory "c:/wamp/www/wpsite">
AllowOverride All
Require all granted <-- lets anybody in
</Directory>
</VirtualHost>
Et Voila.
In this example you are serving tjboy.noip.net and wpsite from the same folder but thats not an issue.
Also just in case there is any confusion, you do not need to put the
tjboy.noip.net domain name in the HOSTS file. Because of course that only effects the PC that holds the HOSTS file and is irrelevant to anything that happens out on the internet.
Of course you could scrap the VHOST definition for
wpsite and use the
tjboy.webhop.net domain name locally as well if you wanted to,
in that case you would need to add that domain name to your HOSTS file, but for access from the internet it is not necessary.
Hope this explains things well enough to get you going.
---------------------------------------------------------------------------------------------
(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 --
phpMyAdminGet 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-
Edited 1 time(s). Last edit at 02/04/2015 03:48PM by RiggsFolly.