"local host" is not set up to establish a connection

Last post 06-29-2009 3:54 PM by Preston B. 4 replies.

Sort Posts:

  • "local host" is not set up to establish a connection

    06-29-2009, 12:37 AM
    • Member
      2 point Member
    • Android09
    • Member since 06-29-2009, 4:29 AM
    • Posts 2

    I'm using VS WD express edition - testing (debugging) the website I'm working on and when I click the debug button IE opens but does not bring up the default page - just an IE error page: "IE can not display the web page". When I click on the IE error-page-button labelled "Diagnose Connection Problems" I get the following message:

    "local host is not set up to establish a connection on port "52930" with this computer"

    Can anyone help? This is obviously my first time using VWD so - I'm not sure what's going on - is IIS using the wrong port? 

  • Re: "local host" is not set up to establish a connection

    06-29-2009, 3:07 AM
    Answer
    • Participant
      1,066 point Participant
    • stevew1975
    • Member since 05-29-2009, 2:51 PM
    • Bristol, UK
    • Posts 189

    try this link

    http://forums.asp.net/t/1395973.aspx




    Please mark this post as answered if it helped you!
  • Re: "local host" is not set up to establish a connection

    06-29-2009, 10:06 AM
    Answer
    • Member
      574 point Member
    • Preston B
    • Member since 07-14-2008, 11:21 PM
    • Posts 123

    You don't mention your OS. If it is Vista, an automatic update or certain virus protection apps may have made a change to your 'hosts' file.

    Your "hosts" file is what tells your computer that "localhost" should map to "127.0.0.1" so here is where your file is:

        C:\WINDOWS\system32\drivers\etc\hosts

    Close Visual Web Developer and any browser that is open.

    Locate the 'hosts' file using Windows Explorer

    Open that file in Notepad under a 'computer administrator account'. The following entry should be present. If it is not, or does not look like the following, add or edit the entry:

        127.0.0.1       localhost

    Save the file and try to open your default page in IE

    -Preston

    Preston Birdwell
    Columbia, CA USA
  • Re: "local host" is not set up to establish a connection

    06-29-2009, 11:22 AM
    • Member
      2 point Member
    • Android09
    • Member since 06-29-2009, 4:29 AM
    • Posts 2

    Preston,


    Yeah sorry I should have mentioned I was working on a Vista machine.

    Yes, the host file contained the following line:


    ::1 localhost

    so I changed the :1 to the loopback address and it worked (after fiddling with the permissions for a while)


    Thanks for the help

  • Re: "local host" is not set up to establish a connection

    06-29-2009, 3:54 PM
    • Member
      574 point Member
    • Preston B
    • Member since 07-14-2008, 11:21 PM
    • Posts 123

     You're welcome. I am glad you got it working!

    -Preston

    Preston Birdwell
    Columbia, CA USA
Page 1 of 1 (5 items)