homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

Using hosts file to develop site on new hosting not working
can't get hosts file in WinXP to work correctly

Msg#: 4099457 posted 11:06 am on Mar 17, 2010 (gmt 0)

I'm running WinXP pro sp3

I have a site which I am redeveloping for client. I want to redevelop the site on my reseller hosting - get approval and then chnage the nameservers permanetly

In the meantime I was going to change the hosts file on my laptop to reflect the new IP of my hosting for the site

I've done this by adding a line like
12.23.455.87 mysite.com www.mysite.com

I can ping mysite.com and it returns the (new) IP address

I have restared browser, cleared caches, stoped DNS services running on the laptop, rebooted the laptop

I've run ipconfig/flushdns several times

but nothing will give me anything but a time out error (on IE) or a blank page (with FF)

I have rebooted my cable modem in case there was an issue with DNS caching there

I can see the site on the new hosting if I browse to 12.34.567.89/~user ( hosting is hostgator reseller if it matters)

theres no typo in the hosts file - there are no extra copies of hosts lying around - Im using the one is windoes/system32/drivers/etc

There are only 2 lines in the file localhost

and my extra line

I've wasted hours on this - I really can't see the issue - hoping someone else can



WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4099457 posted 11:18 am on Mar 17, 2010 (gmt 0)

First of all welcome to WebmasterWorld lissie45!

There are two things I can think of. One problem might be that somewhere between your laptop and the server a proxy is intercepting your request and passing it along to another IP address than you think. This may be caused by proxy settings in your browser, but some ISPs and corporate networks have a transparent proxy in place which catches all requests to port 80 on the fly.

A second possibility might be that at your hosting company the webserver isn't setup yet to receive connections for the domain mysite.com. That you can access your site via is an indication that space has been made available to you to store your script files etc, but to direct requests for mysite.com and www.mysite.com your hosting company has to make an entry in their server configuration which tells them that the files for mysite.com can be found in that project directory.


Msg#: 4099457 posted 7:04 pm on Mar 17, 2010 (gmt 0)

Thanks Lammert for the reply - I posted this and went to bed in disgust - this monring its working *sigh* ! Last thing I did was change the nameservers over for the domain - and I suppose that may have propgaged in less than 8 hours ....

I am thinking that maybe my new ISP is using a proxy. I don't think it was the hosting company as I've set up many sites there and never seen an issue like it on the web (nor seen something similar reported)

Thanks for the welcome!


WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4099457 posted 8:46 am on Mar 18, 2010 (gmt 0)

I have seen it take three days for a name to resolve on several occasions in the past. Always on a job that was time critical too.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved