How can i connect to a Virtual Server from external IP?
Posted by: Occhioverde (
Date: September 17, 2017 08:18PM

Good morning.
I created a Virtual Host with WAMPServer 3 (Call it "site2"winking smiley.
Obviously, if I want to connect to this site with my PC, just enter "[site2"]; in the address bar, but if I try to connect from another computer with the external address, I can only connect to the main host (localhost).
How can I connect to "site2" via external IP?
Thanks in advance for the help.

Options: ReplyQuote
Re: How can i connect to a Virtual Server from external IP?
Posted by: RiggsFolly (Moderator)
Date: September 18, 2017 10:09AM


Because Apache finds you Virutal Host by matching the domain name used in the url to the ServerName you have to call it as `site2` from the other PC's

Now of course the problem is that the other PC's dont know anything about `site2`

So to get round this you can change the HOSTS file on the PC's that want to be able to use `site2` to point to the PC running WAMPServer (Apache). So assuming WAMPServer is running on you can add this ti the HOSTS file of each of the other PC's  site2

Alternatively, but this is a lot more omplicated, you could install a DNS Server and make all your PC's use that DNS Server and add site2 to your DNS. Dont try this unless you know what you are doing with DNS!

(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote

Sorry, only registered users may post in this forum.