Hi,
Well done you are doing better than most who stop by here.
Ok what you forgot is that in the real world when you invent a domain (buy a domain) that new domain gets registered with the global DNS system.
So when a browser or any software is asked for the new domain, it queries the DNS to find the ip address to go to to find it.
Your new domain name is not registered in the DNS and therefore software cannot find its ip address in the normal way.
In your VM # 2 The client:
You now need to tell the PC where to find `demotest.test`.
You cannot tell the real DNS about it without a purchase, so you seed the local DNS Cache by adding your domain name to the `HOSTS` file.
I dont know debian, so I looked on good-old-google and it appears to be in `\etc\hosts` (but dont quote me)
So edit that and add a line like
192.168.1.xxx demotest.test
Where the ip address in there is the ip address of the PC running WAMPServer i.e. Apache (which of course shoul dbe set to a statis IP so it cannot change after a reboot.
Then either reboot or refresh the local DNS Cache, I found various ways in google of doing that, so I will leave you to find one that works for you. If in doubt just reboot the VM.
Additional NoteIf you have a local DNS Server you can register your test domain with that, but that process is outside our brief here so thats all you get from me on that one
---------------------------------------------------------------------------------------------
(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-