Ok, so here is the scenario:
I have computer A inside my local network running IIS 7. I added a new website, let's say samplesite.local, through IIS Manager, and edited the hosts file inside %systemroot%system32driversetc with this new line:
127.0.0.1 samplesite.local
So, in a browser running in computer A, if I type samplesite.local in the address bar and hit Enter, everything works fine. I can access the website.
Now I wanted to access this website from other local computers, say, computer B or an iPad, not from the outside world, but from inside the same local network.
Any thoughts?
Edit:
Computer A's IP is 192.168.1.100, and samplesite.local is running on port 80. However, if I type 192.168.1.100 in any computer's browser's address bar, I'm taken to the default IIS website, the one with the IIS logo, whose physical address is C:inetpubwwwroot, not to samplesite.local.
question from:
https://stackoverflow.com/questions/21896534/accessing-a-local-website-from-another-computer-inside-the-local-network-in-iis 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…