Localhost not able to establish a connection on port ...

Last post 07-04-2009 2:46 PM by SeanGep.NET. 11 replies.

Sort Posts:

  • Localhost not able to establish a connection on port ...

    03-10-2009, 3:55 PM
    • Member
      162 point Member
    • panzer
    • Member since 08-22-2005, 7:07 PM
    • Posts 56
    Hi I have just starting getting the above message when trying to run my application locally, this is the first time it has happened, I have not recently installed any new software or antivirus software. The only antivirus software I have running is Avira AntiVir. I have not made any changes to my firewall, web.config or application properties. running VS2008. Any help appreciated.
  • Re: Localhost not able to establish a connection on port ...

    03-10-2009, 4:47 PM

    Hello,

    Can you verify the SQL Service is running? (Start -> Administrative Tools -> Services)

    I would also look in the Event Viewer for any errors.

    You may also want to try rebooting to see if that resolves the issue.

    If you see any errors in the Event Log or can post the full exact error here, it will help troubleshoot the issue.

    Hope this helps!

     

    Brock Hensley
    Technical Support Representative
    http://www.ServerIntellect.com
    Managed Servers, 24x7 U.S. Support, Web Hosting Solutions.
  • Re: Localhost not able to establish a connection on port ...

    03-10-2009, 5:24 PM
    • Member
      162 point Member
    • panzer
    • Member since 08-22-2005, 7:07 PM
    • Posts 56
    Hi don't have SQL server locally, that is on a remote site, there is nothing showing at all in the event viewer, tried a reboot ans still getting the same message. This is really odd, it was working fine this morning. Now just getting page cannot be display, can't even administer the website.
  • Re: Localhost not able to establish a connection on port ...

    03-11-2009, 1:38 AM
    • Member
      272 point Member
    • omalbose
    • Member since 01-22-2009, 6:08 AM
    • Kochi, India
    • Posts 54

     Hi

    Check your SQL connection with SQLAdapter if you are able to connect it is clear that it is not problem with your DB server. Usually the VS 2008 got the privilege to open ports dynamically on the system while debugging.

    You cannot teach a man anything; you can only help him to find it within himself.
  • Re: Localhost not able to establish a connection on port ...

    03-11-2009, 4:03 AM
    • Member
      162 point Member
    • panzer
    • Member since 08-22-2005, 7:07 PM
    • Posts 56

     Hi

     I don't think SQL is the issue, I create a new website with nothing in it and it still won't run locally.  just keep getting page not found, then i diagnose the problem and get the same  Localhost not able to establish a connection on port (whichever port number it takes)

  • Re: Localhost not able to establish a connection on port ...

    03-11-2009, 6:12 AM
    Answer
    • Member
      162 point Member
    • panzer
    • Member since 08-22-2005, 7:07 PM
    • Posts 56

     Commented out the line

    ::1          LocalHost

     

    with a # in the hosts file and it now works.

    Question is, where did that suddenly come from, has a Microsoft update done it?

  • Re: Localhost not able to establish a connection on port ...

    03-11-2009, 3:52 PM

    Hi Panzer. I guess your solution is VERY GOOD. You are THE MAN.

    I was going crazy over this and your solution solved my problem.

    Thanks a Million.....

     EK

  • Re: Localhost not able to establish a connection on port ...

    03-11-2009, 10:37 PM
    • Member
      272 point Member
    • omalbose
    • Member since 01-22-2009, 6:08 AM
    • Kochi, India
    • Posts 54

     can you expalin how you solved the issue??

    You cannot teach a man anything; you can only help him to find it within himself.
  • Re: Localhost not able to establish a connection on port ...

    03-12-2009, 5:08 AM
    • Member
      30 point Member
    • asmund
    • Member since 03-02-2009, 12:23 PM
    • Posts 11

    This update caused this:
    Definition Update for Windows Defender - KB915597 (Definition 1.53.256.0)

    It caused a removal of the IP mapping to localhost in the hosts file located in
    C:\Windows\system32\drivers\etc\

    You should include this line to the hosts file:
    127.0.0.1 localhost


    See this thread for details:
    http://forums.cnet.com/5208-6132_102-0.html?threadID=334042

    awe
  • Re: Localhost not able to establish a connection on port ...

    05-01-2009, 12:56 AM
    • Member
      2 point Member
    • pheng_vue3
    • Member since 02-13-2009, 8:54 PM
    • Posts 1

     OMG!  I've been trying to fix this forever!!!!  THANKS SO MUCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  Hopefully, Microsoft will catch on.  Incredible work man!

  • Re: Localhost not able to establish a connection on port ...

    05-02-2009, 1:43 AM
    • Member
      91 point Member
    • amitk.singh
    • Member since 02-07-2009, 4:47 AM
    • Chandigarh
    • Posts 57

    set local host as 127.0.0.1 when you are executing your web site

    Thanks
    With Regards

    Amit Singh


    If answer helps you then please mark it as correct.
  • Re: Localhost not able to establish a connection on port ...

    07-04-2009, 2:46 PM
    • Member
      2 point Member
    • SeanGep.NET
    • Member since 05-15-2003, 8:56 AM
    • Redmond
    • Posts 3

    Great find!

    Thanks for your time,
    Sean Gephardt
Page 1 of 1 (12 items)