I'm trying to run asp.net locally, but getting the error
localhost is not set up to establish a connection on port 51624 with this computer
How can I fix it?
![]() |
0 |
![]() |
Can you provide some additional information about the VS version and operatin system you are using..
Also are you running this on VMWare or something like that?
![]() |
0 |
![]() |
I'm running visual stuido 2008 with windows vista. It was working yesterday and all of a sudden it just stop working. When it tries to run, here is what it shows on the status bar
Connecting to site [::1]
res://ieframe.dll/dnserror.htm
![]() |
0 |
![]() |
I found same problem in the article http://forums.asp.net/t/1394856.aspx so do the following steps
The solution is removing the next line in the windows host file C:\Windows\System32\drivers\etc\hosts
::1 localhost
This is an IpV6 entry. Put a # in front of it. "
Instead of commenting this IpV6 entry adding the following IpV4 entry above this line also helps:
127.0.0.1 localhost
or
Commented out the line
::1 LocalHost
with a # in the hosts file and it now works.
You cannot teach a man anything; you can only help him to find it within himself.
![]() |
0 |
![]() |
Thanks so much, that works. I got stuck on this for a couple of hours and couldn't find a solution.
![]() |
0 |
![]() |
hi i trying remove ::1 in hosts while i opened host file in notepad then edit the file but i m trying to save this file an error is coming -> cannot create the C:\windows\system32\drivers\etc\hosts file make sure that the path and the file name are correct
jagwinder singh
![]() |
0 |
![]() |
Hi jagwinder,
go to the directory C:\WINDOWS\system32\drivers\etc and check that whether the hosts file marked as readonly. If it is unmark it any try again. I hope you got the administrative power to access the windows root directory.
Regards
Omal
You cannot teach a man anything; you can only help him to find it within himself.
![]() |
0 |
![]() |
hi omal thanks for ur reply it is unmark...i tried in both way (with marked n unmarked) but the problem is same
jagwinder singh
![]() |
0 |
![]() |
hi omal i done it...i checked my security settings..now its done thanks a lot its working now
jagwinder singh
![]() |
0 |
![]() |
I search for long time in msdn but not found thank you
![]() |
0 |
![]() |
Thanks, omalbose, that worked for me
![]() |
0 |
![]() |
Thanks for your advice;;It works partly with me.If I creating a web site project based on "file system" it worksbut if I creating a web site project based on "HTTP" it doesn't work although I've tried your input to the host file, but it doesn't workI have Visual Studio 2008, Vista Ultimate,,, and this is my first time to create a web site project in this components.Your advice is highly appreciated.
Wizard
![]() |
0 |
![]() |
Thank you for this - it is something I've been struggling with for a while now.
Why on earth has it just started doing this? I've always been able to debug locally on my machine before. Presumably this has come from a Microsoft update or something, which would be fine, if they provided any information on what it is for and how to resolve the problem but they don't. How frustrating.
Appreciate your help with fixing it!
![]() |
0 |
![]() |
You're right. I had similar issue with checking my Glassfish server.
I'm able to start from command-line, CDI.
But was not able to view from browser due to the IpV6 convention.
You're solution allowed me to view
127.0.0.1 localhost
Thanks alot man, worked great.
---------------------------------------------
If anyone else has this problem edit hosts file.
Do a copy of hosts and modify it outside of directory (like your desktop).
Follow omalbose's suggestion.
Then rename file to hosts.
Then move edited file back into C:\\Windows\System32\drivers\etc\
![]() |
0 |
![]() |
walia_jagwinder:
hi omal i done it...i checked my security settings..now its done thanks a lot its working nowPls could u advise how u effected changes to the security settings. I'ave been stuck for too long trying to edit the 127.0.0.1 localhost. I followed Omal's instruction as PC admin to uncheck the 'read only' and applied the changes but was getting similar error/refusal message that you got earlier. I went to security tab but just couldn't see any button to change.
morgkele
![]() |
0 |
![]() |