I have a number of development websites running on IIS on my local windows 11 machine.
I bind the hostname of the website (myTestSite) to port 80/443 and add an entry to my windows hosts file so I can use something like: http://myTestSite to access the IIS site in my browser.
Is there a way I can access these sites by their hostname from my phone?
I get my IPv4 address for my machine and type it into my android phone’s browser with 192.168.1.75:80 for port 80. This takes me to the IIS welcome page.
I tried 192.168.1.75://myTestSite but that does not work. It gives an IIS error page on my phone with
404 – file or directory not found error
I tried binding a site to port 8081 and opening that via windows firewall inbound rules and then used 192.168.1.75:8081 on my phone but that also does not work.
I get:
Bad Request – Invalid Hostname
on my phone with this.
How would I use this ip address with the host name to view a specific site on my phone?
thanks