Hostgator is a hosting provider. This IP address is served by many websites. As Hostgator knows which website serves the client, because when you go to " http://mywebsite.com , your browser sends the HTTP header to Host: mywebsite.com
. Then Apache sees" mywebsite.com "and looks at the contents your website from your user account and delivers it to a web browser.If Hostgator does not receive the Host
header, then it has no idea which website should be displayed, so it just gives you 404.
In short, you need to visit "yourwebsite.com" instead of your raw IP address.
If you find that your computer is sending you to the old IP address, remember that it may take 4-12 hours to fill in the DNS around the world (you can do nothing about it), but usually if you update your local DNS, then the next search will get the correct IP address (this usually works if you are in the same country as your DNS host). This can be done on Windows at the command line via ipconfig /flushdns
, and then ipconfig /registerdns
. If you are using linux, have a look at this .
source share