Accessing my local website from a different device in same LAN
Posted by: bharathbyte (223.226.107.---)
Date: December 14, 2019 01:33PM

So I have got a website hosted on my PC on which wampserver is installed...The website works fine on this PC as well as all devices connected to the same Wi-Fi using my PC's IP address...

On the server PC, the website can be accessed through my website's domain name ( www.bhgyck.com ) but on all the other devices, I am forced to use the IP to access the website.

How can I access my website through the website's domain name from any other device in the LAN, say, my phone?

Is there a workaround for this? Any help would be appreciated!



Thanks in advance.

(Pardon me if my question is silly...I'm a newbie in this area)

Re: Accessing my local website from a different device in same LAN
Posted by: RiggsFolly (Moderator)
Date: December 14, 2019 02:11PM

Edit the HOSTS file on the other devices.

Add your host using its name and the ip address of the PC running WAMPServer, like this for example


192.168.0.10 bhgyck.com

---------------------------------------------------------------------------------------------
(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-

Sorry, only registered users may post in this forum.