Ask Leo! by Leo A. Notenboom

Why doesn't accessing a site by its IP address work?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Networking » Network IP Addressing

Summary: It's not uncommon for tens, if not hundreds of websites to be located on a single web server. When that happens, an IP address just isn't enough.

There is a website [some random service]. Its name is [somerandomservice.com]. Many people seem to access this site just fine, yet many others just get a blank page. If I PING the site everything looks good. The IP address that PING gives me is [72.3.249.232]. If I try this IP address in my browser I get a page that says

"If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content."

But again, the most confusing part is that many people on several soap forums say they have no problems at all accessing this site - how could this possibly be?

I've changed the site and IP address above, but the idea is the same.

The short answer is that what you're seeing is totally expected. The IP address actually isn't enough to identify the site you want to go to. That's true for many sites, including the one in the original question and http://somerandomservice.com.

It's also true for http://ask-leo.com.

I'll discuss why.

If you go to http://somerandomservice.com (it's a real site, I own it), you'll see something like this:

Some Random Service placeholder and demo site

However, if you look up somerandomservice.com's IP address - 72.3.249.232 - and go to http://72.3.249.232 you get something else entirely...

No site here page

The problem, in a nutshell, is shared hosting.

The server at the IP address 72.3.249.232 hosts many web sites (48 as I write this) of which somerandomservice.com is only one. The IP address alone is not enough information to tell that server which site it is you want to see. As a result, the server displays a default page. In my case, I made my own custom page to help direct people to other sites, in your case the default page provided by the server management software is shown.

The same's true for http://ask-leo.com; its IP address, currently 72.32.63.173, will actually end up redirecting you to that same "No Site Here" page above.

When you visit a site using its actual name, like "somerandomservice.com", the IP address is used to locate the server, and then the name you're asking for is also passed along. You can think of that request as being something along the lines of "Hello 72.3.249.232, I'd like to view somerandomservice.com, please". Without the domain name, the request is more like "Hello 72.3.249.232, show me your default site, please". On servers that host only one site, the results may be the same; on others, though, they're likely quite different.

As to why some people can see the site by name and others get only a blank page, I'll refer you to Why can I not access certain web sites? which touches on many of the potential reasons.

Related:

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Article C3853 - August 26, 2009

Recent Comments
5 Comments

Why not just use http://www.example.com/ .net or .org instead of purchasing somerandomservice?

I'm a control freak. Smile (Also own http://reallybigbookstore.com too.)
Leo
27-Aug-2009

Posted by: Daniel Ullman at August 26, 2009 9:23 AM

Thanks for this article. It does explain several things that very well related to the IP address and the site name. I did download Dr TCP referenced in the related article listed, to tinker with the MTU settings, but unfortunately that did not help for this particular site. It seems like they must have something wrong on their end. Thanks again.

Posted by: Wayne Urton at August 26, 2009 4:22 PM

Thanks for this article.but i have quastion, what is the information that i need if i want to visit a website using the ip address?

Posted by: Majdi at August 29, 2009 1:08 AM

When I am trying to go to google.COM from my computer in the Netherlands I am redirected to google.NL. But using the IP address 74.125.127.100 brings me to google.COM. Sometimes the search results are a bit different so I have two bookmarks for Google.

Posted by: Henk at September 1, 2009 12:25 PM

@Henk: if you need to consistently access google.com try using (once is enough) www.google.com/ncr -it will remember that you want the .com site and won't redirect you to the localized page.

Posted by: Cornel at September 4, 2009 1:08 AM

Post a comment on "Why doesn't accessing a site by its IP address work?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!