Hacker News new | ask | show | jobs
by patmeckham 5168 days ago
Here's a quote from another mattpeckham article:

When you type something like "www.yahoo.com" into your browser, for instance, your request hits your Internet service provider's DNS server, which translates it into a numeric IP address. If you plug that IP address into your browser's URL bar in lieu of the web address, barring any IP tricks, you'll land on the exact same web page.

End quote.

Matt, have you ever run an http server? Did you actually try the experiment you describe? Yahoo has long required a Host name in addition to an IP address. No Host name, no dice.

Most http servers are serving differing (or the same) content for a variety of Host names. The buzzword is "virtual hosting". The person running such a server may choose to accomodate the situation where no Host name is provided, and serve you some "default" content. Or he made not. Where the web (http) is concerned, IP addresses alone will rarely suffice. The web of course is only a small part of the internet.

Also, would you care to elaborate on what you mean by "IP tricks".

I have a bigger problem with "tech journalism" like this than I do with Google Drive and other cloud storage nonsense.

1 comments

I was curious if browsing via ip still works, and at least for Y! it does.

   $ dig yahoo.com
   [ ... ]
   ;; ANSWER SECTION:
   yahoo.com.		1153	IN	A	98.139.183.24
plugging 98.139.183.24 into the omnibar on chrome leads to yahoo just fine [1]

[1] https://img.skitch.com/20120426-gdhrn9wpum12y39ifui3um37b2.j...

That is because yahoo has its own servers and yahoo.com is the only website at that IP. For mere mortals like me with a dreamhost account or something, there's probably dozens of sites on the same IP, so your computer has to first connect to the IP then send the HTTP "Host:" header to say what site it wants.