i have installed xampp and started apache server on local port 80
and configured my dns/url to access it from other devices on the same network.
the problme is: i cant access the page/server through dns on my phone , but i can with pc' ip.
network info: router ip 192.168.44.1
pc ip 192.168.44.104
phone ip 192.168.44.97
firewall is disabled on the pc.
i have tried to conig those files:
C:\xampp\apache\conf\httpd.conf
- Code: Select all
Listen 80
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 192.168.0.100:80
C:\xampp\apache\conf\extra\httpd-vhosts.conf
- Code: Select all
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/dummy-host.example.com"
ServerName hod.local
ServerAlias hod.local
</VirtualHost>
C:\Windows\System32\drivers\etc\hosts
- Code: Select all
127.0.0.1 localhost
::1 localhost
127.0.0.1 hod.local
if i opened browser in my pc and goto hod.local or 192.168.44.104:80 the hosted site will open
if i opened browser in my phone on the same network and goto to 192.168.44.104 the page will open,
but if i goto hod.local and i will get ERR_NAME_NOT_RESOLVED