Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Host Files

Status
Not open for further replies.

Sarky78

Programmer
Oct 19, 2000
878
GB
Having problems with Windows Host files. We use them within our own network fine(where the website is hosted on one of our servers). We use a leased line without a problem. When we tell clients to do the same thing, using the same information that we have in our hst file, the client can't access the site. It seems to be with clients that are using Dial Up Connections, is there to allow the clients to access the site using the host file in this way ?
 
My first step in this would be to verify that it's indeed a problem with the host file. I would have the client pull up a dos window on their pc and do a "ping yourHostName". It should then respond "pinging yourHostname [10.10.0.1]" or similar. This will tell you whether they are resolving the hostname or not. If it does show the correct ip, then your problem is elsewhere but if it doesn't, the fix should be simple.

Host files are straightforward and usually easy to fix if there's a problem. Although I do very little with dialup, I'm not aware of Windows treating host files differently over dialup connections so this should be something that's not hard to resolve.

GJ
 
Cheers GunJack, we have tried pinging the server using the host name that is in the host file and it says it can't respole the server. We have tried it on three machines all running windows, and all using dial up connections. So there is the problem. Any other suggestions ??
 
At this point, I would say that there is either something with the dial up networking that isn't using the hosts file or you have a problem with either the name, location, or format of the hosts file.

If you are using 95, the file needs to be named "hosts" without an extension and located in the Windows main directory. Each line should follow this format of ip then name. Occasionally someone will reverse the order and they won't work.

(correct format)
10.10.10.1 compName

If you're using 98, I think the location is the same however for NT, the host file needs to be in the system32\drivers\etc directory.

If all the previous is correct, post a section from the hosts file you're using and I'll check some things with dialup networking. Also, let me know what OS you're using.

GJ
 
If you have a dialup network it seems that there is a problem with the routing, because the dialupnet is logically different and then if you have DNS on your server you should assign a IP-Address to an incomming line by DHCP and route this line to the local network in a correct way.



hnd
hasso55@yahoo.com

 
If you have a dialup network it seems that there is a problem with the routing, because the dialupnet is logically different. If you have DNS on your server you should assign a IP-Address to an incomming line by DHCP and route this line to the local network in a correct way.



hnd
hasso55@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top