Link to home
Create AccountLog in
.NET Programming

.NET Programming

--

Questions

--

Followers

Top Experts

Avatar of Letto
Letto

telnet localhost 80 Could not open connection...
telnet localhost 80 Connecting to localhost... Could not open connection to the host, on port 80: Connect failed

What I already tried.
1. I ping localhost - everything fine
2. Add role to firewall to port 80
3. by using netstat -a tried to find what happen in port 80. However I did find any mentions of port 80 in list
4. tried just type telnet google.com 80 -> it's work
5. I opened IIS manager -> it's work
6. tried to type in address line in 3 different browser http://localhost or 127.0.0.1 don't work
and fiddler tell me that [Fiddler] The socket connection to localhost failed.
ErrorCode: 10051.
A socket operation was attempted to an unreachable network 127.0.0.1:80
7. BTW I need localhost for making virtual directory and I install everything that suggest me VS 2010 and run cmd.exe and VS 2010 as admin
and still get error that : Unable to create the virtual directory . could not find the server http://localhost on the local machine. Creating a virtual directory is only supported on the local IIS server.
8. I also tried to make changes in host file (in /drive/etc/host ) (I mean 127.0.0.1 localhost  without #)

PS I use Windows 7 , VS 2010
Please help me
Many thanks in advance

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of becraigbecraig🇺🇸

Have you taken a look at your IIS config to determine if your http traffic is bound over port 80?

check the following reg key to verify the decimal value:
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceProvider\ServiceType\W3SVC

if the decimal value is 80 run iisreset from the command line, then run inetmgr and go to your website and check the bindings and do a browse to from the site in iis.

Avatar of LettoLetto

ASKER

No I did check it... but,  Sorry   in folder HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ServiceProvider i find only "order " folder what I do wrong ?
help.png

Avatar of LettoLetto

ASKER

Any way I run from command line what you suggest and what that I get (see printscreen )

btw , I haven't website I just wanna run virtual directory for study purpose
help.png

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of RouchieRouchie🇬🇧

Perhaps a daft question but are you using Skype?

Avatar of LettoLetto

ASKER

I already delete skype... Nothing changed ...

Avatar of edster9999edster9999🇮🇪

There are two addresses that would reference your local machine.
The IP address (say 10.20.30.40)
and the localhost IP (which is 127.0.0.X)

When you run any service on an IP, you bind it to a port and to an address.

If you run a web server on port 80 on the machine above - there are 3 different addresses you could list.  You can say 10.20.30.40 which means that any traffic to that address will get piked up.  But anything to any other address (including 127.0.0.1) will be ignored.
You can bind it to 127.0.0.1 which will then work as localhost but ignore anything to any other address like 10.20.30.40.
...or... you can bind to 0.0.0.0 which means 'grab anything'
Both 10.20.30.40 and 127.0.0.1 will be accepted.

So start by making sure your web server is running - then check what address it is bound to.  From what you have described - I'm guessing you have bound it to your IP address so it is ignoring 127.0.0.1 (aka localhost)

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of LettoLetto

ASKER

So start by making sure your web server is running
how I can check it ? As far as I'm understand I should seen this default  picture (atachment ) when I type in address line localhost... Am i right ?
welcome.png

Avatar of becraigbecraig🇺🇸

Can you please add iis management console to your windows features:
http://www.iis.net/learn/install/installing-iis-7/installing-iis-on-windows-vista-and-windows-7

This will allow us to run inetmgr and give us an easier option to troubleshoot your settings.

Avatar of LettoLetto

ASKER

Can you please add iis management console to your windows features:
http://www.iis.net/learn/install/installing-iis-7/installing-iis-on-windows-vista-and-windows-7

This will allow us to run inetmgr and give us an easier option to troubleshoot your settings.

Yes of course just a second I make it asap

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of LettoLetto

ASKER

Can you please add iis management console to your windows features:
http://www.iis.net/learn/install/installing-iis-7/installing-iis-on-windows-vista-and-windows-7

This will allow us to run inetmgr and give us an easier option to troubleshoot your settings.


Yes of course just a second I make it asap

I added... may I should add something else ?
help.png

Avatar of becraigbecraig🇺🇸

go to start - run - inetmgr
once there expand your computer name and click on your site
then click on bindings on the right that should tell you what port is bound to "http"

Avatar of LettoLetto

ASKER

go to start - run - inetmgr
once there expand your computer name and click on your site
then click on bindings on the right that should tell you what port is bound to "http"

sites folder in empty

may be "application pool" "advance setting" can get you some clue ?

What I do wront again ? please forgive me for my noobism...
help.png
help.png

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of becraigbecraig🇺🇸

No sweat we are making progress...

So create a new site and point it to your folder your website files will be  

You can then create your app pools and virtual directories etc.

Avatar of edster9999edster9999🇮🇪

Yes it looks like you have no sites - so nothing is bound to port 80.
When you do get them loaded up - an easy way to check they are attached and you have it bound to the right IP is to go to a cmd window and type in
netstat -an

this shows the open listening ports and which IP they are attached to.

Avatar of LettoLetto

ASKER

Can you give me hyperlink on article or video how to make web site via iis manager windows 7 Ultimate every link that I get show that iis manager already has default website ... I cannot understand why my iis was without default site ...

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of becraigbecraig🇺🇸


Avatar of LettoLetto

ASKER

When I try to create website in group "binding" dropdown for type is empty... (see in attachment ) I found a discution where advice to reinstall IIS and Windows Process Activation Service... http://forums.iis.net/t/1155799.aspx

May be there less painfull solution please, look forward for your advices
help.png

Avatar of LettoLetto

ASKER

Ones again if shortly in binding type (in iis manager) there isn't opntion with  http  (see atachment )

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of becraigbecraig🇺🇸

No attachment :(

Avatar of LettoLetto

ASKER

Sorry that confused you I meant ...  this one
help.png

Avatar of becraigbecraig🇺🇸

I am suspecting at this point you may have multiple instances of a webserver running, can you give me the output of netstat -ano -p tcp

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of LettoLetto

ASKER

93.191.13.103:80 time_wait this is not good right ?
help.png

Avatar of LettoLetto

ASKER

In Windows\System32\inetsrv\config , there is file applicationHost.config

I add line
 <add name="http" />

Open in new window

to this part of file
<listenerAdapters>
           
            <add name="net.tcp" identity="S-1-5-80-3579033775-2824656752-1522793541-1960352512-462907086" />
            <add name="net.pipe" identity="S-1-5-80-2943419899-937267781-4189664001-1229628381-3982115073" />
            <add name="net.msmq" identity="S-1-5-80-89244771-1762554971-1007993102-348796144-2203111529" />
            <add name="msmq.formatname" identity="S-1-5-80-89244771-1762554971-1007993102-348796144-2203111529" />
        </listenerAdapters>

Open in new window


and I get that binding http is appears... However any IP address that try to choose gives me invalid message  (see attachment ) What should I try to do next ? Please give me a clue
help2.png

Avatar of becraigbecraig🇺🇸

Your netstat entry you are looking for would be under local Address  I do not see a listener on port 80.

I would just wipe my iis install (s) and recycle the box and start afresh with a new iis install.

Something else seems to be broken here and it might make sense just to start with a clean slate so we can verify what is actually on the box.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of LettoLetto

ASKER

I overcome problem related to creating default website now I need to create virtual directory .... localhost work fine (see attachment ).
look forward for your advices
help.png
help2.png
help3.png
help4.png

Avatar of becraigbecraig🇺🇸

Can you try this for me

telnet localhost 80  let me know if that works.

you should be able to add telnet as a feature to windows 7 if it does not exist.

also what ip addresses are your sites bound to and what port is http bound to on each ?

Avatar of LettoLetto

ASKER

telnet localhost 80 is work

127.0.0.1:80
help.png

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of becraigbecraig🇺🇸

Ok so at this point let's call the first issue resolved then move on to resolving the second  issue.

You should open a second question for the virtual directory issue, I will check for that and see if we can resolve that as well, which should be easy.

Avatar of LettoLetto

ASKER

I make some steps now I have this error when I try to open /Service1.svc (see attachment )
however /WCFExample work fine

Please tell me what is MiME map ???
help.png
help2.png

ASKER CERTIFIED SOLUTION
Avatar of becraigbecraig🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of LettoLetto

ASKER

so what is happening here is IIS need to have defined MIME handlers eg:
If I have a .php page I need to tell iis what to do with files with that extension.

E.g. If I have a .cfm page I would need to have a MIME handler indicating what engine on my webserver would handle that file type, more info below.

http://technet.microsoft.com/en-us/library/cc725608%28v=ws.10%29.aspx

This is work ! Not how I expect but without error and problems... Any ways very first topic is done... Thanks you very much you my hero! Without your help I definitely waste much more time ! Ones again thanks you ! Hope that you will be navigate me through world of wcf/ .net  in the future
best regards

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of LettoLetto

ASKER

This is work ! Not how I expect but without error and problems... Any ways very first topic is done... Thanks you very much you my hero! Without your help I definitely waste much more time ! Ones again thanks you ! Hope that you will be navigate me through world of wcf/ .net  in the future
best regards
.NET Programming

.NET Programming

--

Questions

--

Followers

Top Experts

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.