Hi,
Thanks.
First, what happened to your `localhost` virtual host? That should remain in place so you can still access the WAMPSverer homepage from the PC Running WAMPServer. It can be useful when tracing issues.
Ok, one of your problems is the use of `.dev` as the TLD in the domain name. Google bought ALL of the new `.dev` domain, so their browsers will force the lookup to be on the internet and not on the local machine.
To avaoid this replace `.dev` with somethig else EG `.local` or `.here` or anything that makes sense to you to indicate "its located on my lan" and not the internet.
Now if you want to access your site, lets say `example.local` from another PC on your lan, you have to use `example.local` in your url in the browser on the other PC. But of course that other PC does not know where to find `example.local` so it will look for it in a DNS Server on the internet and that will also fail as its not registered there.
So there are a few ways round this:
1. Edit the HOSTS file on the other PC and add `example.local` to that like this
192.168.0.100 example.local
very similiar to what you do on the WAMPServer machine to its HOSTS file, but you use the ip address of the PC hosting Apache i.e. the WAMPServer PC (which should be configured to have a static IP address or this will not always work)
2. More complex, but if you have or would like to install a DNS Server on your PC, you can enter your site(s) in there and make all your PC's use your DNS Server. Of course this is not for the faint hearter as the local DNS needs to be correctly configured so what it does not know about domain name wise will cause it to look out to a real DNS Server.
3. A technique I use to allow me to access a site from my phone/tablet where of course (unless you jail break the device you cannot access the HOSTS file) I make Apache listen on a specific port for the site I am testing at the time. I wrote an answer about this on
StackOverflow yo ucan look at it there.
---------------------------------------------------------------------------------------------
(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-