Accessing custom domain from clients' devices over LAN

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Accessing custom domain from clients' devices over LAN

Postby optimisticwalker » 16. July 2021 16:31

On a Windows host device (Static IP address: 192.168.0.150) a site with properly configured custom domain test.com is accessible by the domain name test.com and the IP address 192.168.0.150

On clients' devices (192.168.0.155 & 192.168.0.160) within the local area network the site is accessible by the IP address 192.168.0.150 only.

On host device, site.com was pointed to 192.168.0.150 in host file. A VirtualHost entry for site.com using port 80 was also properly created in XAMPP httpd-vhosts.conf file.

How to access the site using the domain name site.com on clients' devices (192.168.0.155 & 192.168.0.160) dynamically over a local area network? Shall I have to use local DNS server on host device to achieve it? What are the minimal configurations? How about https://technitium.com/dns/?

Thanks in advance.
optimisticwalker
 
Posts: 23
Joined: 01. September 2018 21:21
XAMPP version: 7.2.9
Operating System: WIndows

Re: Accessing custom domain from clients' devices over LAN

Postby Altrea » 16. July 2021 17:18

you need any type of domain name resolution. Either you are using a local DNS, or the clients hosts files.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Accessing custom domain from clients' devices over LAN

Postby optimisticwalker » 19. July 2021 21:47

Domain resolution by registering domain against specific ip address into clients' host file isn't a viable and realistic solution for a local network of some 50 devices. Using a local DNS should be the right choice in this case though android devices within the network require some special attention.

Thanks,
optimisticwalker
 
Posts: 23
Joined: 01. September 2018 21:21
XAMPP version: 7.2.9
Operating System: WIndows


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 197 guests