Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619

    http://localhost not working


    Hey everyone,

    Whenever I try to go to http://localhost in Firefox, I get directed to http://p2p.cs.mu.oz.au/software/Localhost/

    This isn't very helpful when I am trying things out (XAMPP & Beagle Web Service).

    Any ideas?

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  2. #2
    Linux User
    Join Date
    Nov 2004
    Location
    Boise, ID
    Posts
    340
    replace localhost with 127.0.0.1, it's easier than figuring out the issue.

  3. #3
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    something like the beagle webservice (depreciated and deactivated in most recent releases) generally is bound to a specific port, such as 8080, to specify this,

    http://localhost:8080

    Im not sure what port the beagle web service is offered on, but something like

    netstat -tu

    -----or-----

    nmap localhost

    should help you figure it out.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    Quote Originally Posted by Stefann
    replace localhost with 127.0.0.1, it's easier than figuring out the issue.
    That seems to work. Thanks!

    Seems weird that http://localhost doesn't work.

    qub333 - Thanks but the port doesn't make a difference. Also, the Beagle Web Service was not a huge concern, it was more of an example.

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  6. #5
    Hi bryansmith,

    Have you fixed your http://localhost problem? If http://127.0.0.1 works but http://localhost doesn't, try finding out what IP address localhost resolves to.

    Do you have the same problem using other browsers (e.g. konqueror)?

  7. #6
    I think localhost port should be 80.

  8. #7
    Quote Originally Posted by shoum
    I think localhost port should be 80.
    dude it can be any port you specify

    as for the problem at hand

    Code:
    nano -w /etc/hosts
    check for the line
    Code:
    127.0.0.1     localhost
    if it is there im clueless, if not what does it say for 127.0.0.1

  9. #8
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    Here is my /etc/hosts:
    Code:
    #
    # /etc/hosts: static lookup table for host names
    #
    
    #<ip-address>   <hostname.domain.org>   <hostname>
    127.0.0.1               localhost.localdomain   localhost
    
    # End of file
    Seems okay but then again I know squat about servers and networking .

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  10. #9
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,990
    what happens if you do:

    nslookup localhost

    and what does it say in your /etc/resolv.conf?
    Linux user #126863 - see http://linuxcounter.net/

  11. #10
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,619
    Thanks everyone for the concern but I am more than happy using http://127.0.0.1

    http://localhost is not such a concern for me.

    Thanks again,
    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •