How to access website by ONLY IP Adress

Discussion in 'Site & Server Administration' started by deshoda, Nov 16, 2010.

  1. #1
    Hello All

    I am trying to create a website that you have to type in the ip address to access. No domain name.

    So instead of typing http://example.com i want to be able to gain access by typing 123.4.5.678

    I also dont want it to be translated back to name. any help would be great
     
    deshoda, Nov 16, 2010 IP
  2. supportex

    supportex Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    What webserver do you use? Apache, lighttpd, nginx?
     
    supportex, Nov 16, 2010 IP
  3. Ryan-W

    Ryan-W Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    From what I understand, accessing your site by typing the IP address in the browser shouldn't be a problem. If you want to view your site with IP address only, you will need a dedicated IP address assigned to your domain here it is hosted.
     
    Ryan-W, Nov 16, 2010 IP
  4. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #4
    So don't setup any host/dns... So long as you have an http daemon running you should be able to access it via the IP you've bound to your NIC.
     
    Mia, Nov 16, 2010 IP
  5. sponsorlist

    sponsorlist Peon

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Every site has an IP (but often not unique) that you can also derive from the domain name by using nslookup or etc. Depending on how the server is setup you might be able to access the site by using just that IP like http ://12.34.56.78 . But unless it's dedicated IP address, it will change over time.

    It would help to know what exactly you're trying to do, where you plan on hosting the site what kind of server, and why you want to setup it this way. I don't see much benefit from accessing site that way, dedicated IP would cost more than registering a domain like 12-34-56-78.com and it looks almost same and is easier.
     
    sponsorlist, Nov 18, 2010 IP
  6. badhim

    badhim Member

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #6
    You will need a dedicated server with a static IP address.

    This can't be done on the shared hosting, because in this case all the sites are sharing the same IP address, and the server differs them by the domain name.
     
    badhim, Nov 19, 2010 IP
  7. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #7
    Are you trying to tell us you've never heard of name based virtual hosting?

    Yes you can do this!
     
    Mia, Nov 19, 2010 IP
  8. badhim

    badhim Member

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #8
    The topicstarter asks about accessing the site by the IP address, not name. Ok, for example you have several virtual hosts (host1, host2,...) on one computer with one IP address (123.123.234.234). Tell us, how can you access host2 by using only the IP address?

    You can, probably, access host1 by typing http://123.123.234.234, because host1, most likely, will be the default host. But to reach host2, web-browser should send the "HOST: host2" header.
     
    badhim, Nov 19, 2010 IP
  9. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #9
    IP/user

    In some nix's its IP/~user (http://123.123.234.234/~user)

    or

    (http://123.123.234.234/user)

    e.g. http://123.123.234.234/sitename

    ;)
     
    Mia, Nov 19, 2010 IP