Back to Forums








View Full Version : Edit Host File


Dehcbad25
November 19th, 2003, 22:32 PM
Ok, the tip this week is an easy one. I had used this many times, and I guess most of you knows it, but still doesn't hurt to list it here.

There have been a few times that I couldn't retrieve my e-mail through Outlook Express even though the mail server was running just fine. I wasn't experiencing DNS problems and every other program I had could access the internet just fine... After a bit of frustration I gave up but my friend Marc was able to figure it out!

If you're experiencing problems with your mail client connecting to your mail server (OE says cannot find host) and you know it's up, there's a simple fix. First you have to locate your 'hosts' file (searching for it via Windows search tool is easiest), please keep in mind that the file has no extension and in WindowsXP it's in your Windows\system32\drivers\etc directory.

Once you find it open it up with notepad and scroll down to the bottom. Enter the ip address of your mail server then press the tab button then enter the name of your mail server (for instance my ISP mail server is stmp.rogers.com). Once that's done save and exit and your mail client should work now.

If you don't know the IP address of your mail server you'll have to get a friend to do an nslookup (start -> run, CMD and press ok). From the command prompt type "nslookup stmp.rogers.com" but instead put your mail server's address.

PS: I use this a lot of rinternal addresses in the network ;)

xeonic
April 12th, 2004, 05:12 AM
did you try to rebuild you'r OE account before you did this process?

Dehcbad25
April 15th, 2004, 04:39 AM
eh????
That is a tip
Editing the host file works for a lot of other stuff as well. It is extremely usefully when you are in a LAN and can't connect to internal servers thru their names for example. Or internal web sites without having an entry in an Internal DNS (or if there is none).
If you access a lot the same computers also it speeds up the process since it looks the internal host first for resolution, then the NetBUI, or NetBIOS, or WINS (or whatever is being used for resolution)
It will also reduce traffic when using NetBUI. And I can't think of anymore uses now, but probably there are.
A con, is that it is not dynamic and it is by host