|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can't Access Domain from local machine
I run a website using IIS (Advanced Server 2000) on my home machine. I also have 3 computers set up throughout my house. I have a domain name (ex: www.test.com) and I can access my website just fine from anywhere EXCEPT my 3 home machines. When I type in my URL (www.test.com) at home, it says "Page Cannot Be Found" or something like that. I have to browse to 192.168.1.2 (my local IP in my network) to display the website on my home computers.
My question is: How can I access my website using my domain name from my home computers. Anyone else have this problem? Thanks, Ryan |
|
#2
|
||||
|
||||
|
Are your other machines connected to the internet? They should go outsite your LAN, then come back in if you use a FQDN like www.test.com.
You can add an entry in your hosts file (C:\WINNT\system32\drivers\etc\hosts) that points to your private IP 192.168.1.2 and then you should be able to access your local machine with http://test/.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#3
|
|||
|
|||
|
Yes, edit that hosts file so that it looks like this:
192.168.1.2 test.com 192.168.1.2 www.test.com This has to be present on ALL of your home machines. This hosts file supercedes your DNS server lookups. Wow, this just inspired me to play some major pranks on the guys @ the office on Monday morning. Thanks. Last edited by Deal-a-Neil : March 2nd, 2003 at 11:14 PM. |
|
#4
|
||||
|
||||
|
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Can't Access Domain from local machine |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|