localhost will not browse to website.

G

Guest

My localhost appears to be wacked. I have a website configured in IIS and I
can browse it in IIS. I can browse the same website by addrssing it with my
static IP address IE howeverwhen I try to hit it with localhost/<name> it
goes to MSN search. IpConfig /displaydns clearly shows a record for localhost
as 127.0.0.1. My host file clearly has a record as 127.0.0.1 localhost. But
when I PING localhost from a cmd window the result is:

C:\Documents and Settings\Tom>ping localhost
Pinging CLAFFY1 [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

NO IP ADDRESS! I have spent hours searching for this. Any help anywhere??? I
need localhost to resolve so I can open my solution in VB.NET
 
G

Guest

Go to the IIS console in control panel>administrative tools>Internet
Information Services. Expand local computer, select web sites, mouse over on
the name of your site and select properties. When the properties screen
appears select the advanced tab under Web Site Identifications (on the Web
Site Tab, which is the default tab when openning).
Now all you have to do is click add under multiple identities. Under ip
type 127.0.0.1 and for port type 80, then click ok.
 
G

Guest

As I originally said, IIS is able to browse the site which means that it can
find the site but I suppose I was remiss in not adding that I have have
already added my static IP, 127.0.0.1, and the default all unassigned. This
was no help. The issue is that Windows is not resoviing localhost correctly
as ilustrated in the results of the ping. You can change any of your web
sites to whatever IP and Port. This is not going to change the results of
your ping of localhost. Something is wrong in the resoluton of that address.
It is NOT being interpreted as 127.0.0.1 on my pc...it is being intrepreted
as ::1:. This is what has to be fixed, somehow.

ERICCASEY said:
Go to the IIS console in control panel>administrative tools>Internet
Information Services. Expand local computer, select web sites, mouse over on
the name of your site and select properties. When the properties screen
appears select the advanced tab under Web Site Identifications (on the Web
Site Tab, which is the default tab when openning).
Now all you have to do is click add under multiple identities. Under ip
type 127.0.0.1 and for port type 80, then click ok.

Tom C said:
My localhost appears to be wacked. I have a website configured in IIS and I
can browse it in IIS. I can browse the same website by addrssing it with my
static IP address IE howeverwhen I try to hit it with localhost/<name> it
goes to MSN search. IpConfig /displaydns clearly shows a record for localhost
as 127.0.0.1. My host file clearly has a record as 127.0.0.1 localhost. But
when I PING localhost from a cmd window the result is:

C:\Documents and Settings\Tom>ping localhost
Pinging CLAFFY1 [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

NO IP ADDRESS! I have spent hours searching for this. Any help anywhere??? I
need localhost to resolve so I can open my solution in VB.NET
 
G

Guest

Sounds like you have the correct config. Note, when I ping localhost as well
my reture is the same as well:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
When I ping 127.0.0.1 my return is:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Curious, if you enter just 127.0.0.1 does it resolve properly?


Tom C said:
As I originally said, IIS is able to browse the site which means that it can
find the site but I suppose I was remiss in not adding that I have have
already added my static IP, 127.0.0.1, and the default all unassigned. This
was no help. The issue is that Windows is not resoviing localhost correctly
as ilustrated in the results of the ping. You can change any of your web
sites to whatever IP and Port. This is not going to change the results of
your ping of localhost. Something is wrong in the resoluton of that address.
It is NOT being interpreted as 127.0.0.1 on my pc...it is being intrepreted
as ::1:. This is what has to be fixed, somehow.

ERICCASEY said:
Go to the IIS console in control panel>administrative tools>Internet
Information Services. Expand local computer, select web sites, mouse over on
the name of your site and select properties. When the properties screen
appears select the advanced tab under Web Site Identifications (on the Web
Site Tab, which is the default tab when openning).
Now all you have to do is click add under multiple identities. Under ip
type 127.0.0.1 and for port type 80, then click ok.

Tom C said:
My localhost appears to be wacked. I have a website configured in IIS and I
can browse it in IIS. I can browse the same website by addrssing it with my
static IP address IE howeverwhen I try to hit it with localhost/<name> it
goes to MSN search. IpConfig /displaydns clearly shows a record for localhost
as 127.0.0.1. My host file clearly has a record as 127.0.0.1 localhost. But
when I PING localhost from a cmd window the result is:

C:\Documents and Settings\Tom>ping localhost
Pinging CLAFFY1 [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

NO IP ADDRESS! I have spent hours searching for this. Any help anywhere??? I
need localhost to resolve so I can open my solution in VB.NET
 
G

Guest

Hmmm....yes, my 127.0.0.1 ping responds as does yours...maybe I am looking
at the wrong thing here? Why in the heck can I reach this site in IIS and not
my browser? I have Windows Server 2003 configured and running with MSSQL 2005
but I can't for the life of me get my XP box to access this site. I need
localhost to debug in VB.Net

ERICCASEY said:
Sounds like you have the correct config. Note, when I ping localhost as well
my reture is the same as well:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
When I ping 127.0.0.1 my return is:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Curious, if you enter just 127.0.0.1 does it resolve properly?


Tom C said:
As I originally said, IIS is able to browse the site which means that it can
find the site but I suppose I was remiss in not adding that I have have
already added my static IP, 127.0.0.1, and the default all unassigned. This
was no help. The issue is that Windows is not resoviing localhost correctly
as ilustrated in the results of the ping. You can change any of your web
sites to whatever IP and Port. This is not going to change the results of
your ping of localhost. Something is wrong in the resoluton of that address.
It is NOT being interpreted as 127.0.0.1 on my pc...it is being intrepreted
as ::1:. This is what has to be fixed, somehow.

ERICCASEY said:
Go to the IIS console in control panel>administrative tools>Internet
Information Services. Expand local computer, select web sites, mouse over on
the name of your site and select properties. When the properties screen
appears select the advanced tab under Web Site Identifications (on the Web
Site Tab, which is the default tab when openning).
Now all you have to do is click add under multiple identities. Under ip
type 127.0.0.1 and for port type 80, then click ok.

:

My localhost appears to be wacked. I have a website configured in IIS and I
can browse it in IIS. I can browse the same website by addrssing it with my
static IP address IE howeverwhen I try to hit it with localhost/<name> it
goes to MSN search. IpConfig /displaydns clearly shows a record for localhost
as 127.0.0.1. My host file clearly has a record as 127.0.0.1 localhost. But
when I PING localhost from a cmd window the result is:

C:\Documents and Settings\Tom>ping localhost
Pinging CLAFFY1 [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

NO IP ADDRESS! I have spent hours searching for this. Any help anywhere??? I
need localhost to resolve so I can open my solution in VB.NET
 
L

Leythos

As I originally said, IIS is able to browse the site which means that it can
find the site but I suppose I was remiss in not adding that I have have
already added my static IP, 127.0.0.1, and the default all unassigned. This
was no help. The issue is that Windows is not resoviing localhost correctly
as ilustrated in the results of the ping. You can change any of your web
sites to whatever IP and Port. This is not going to change the results of
your ping of localhost. Something is wrong in the resoluton of that address.
It is NOT being interpreted as 127.0.0.1 on my pc...it is being intrepreted
as ::1:. This is what has to be fixed, somehow.

Your HOSTS file should have one entry:

127.0.0.1 localhost

Anything else is something you added or another application added.

Try removing all entries EXCEPT for the:
127.0.0.1 localhost

and see if that fixes it.
 
T

Tony

Tom C said:
My localhost appears to be wacked. I have a website configured in IIS and
I
can browse it in IIS. I can browse the same website by addrssing it with
my
static IP address IE howeverwhen I try to hit it with localhost/<name> it
goes to MSN search. IpConfig /displaydns clearly shows a record for
localhost
as 127.0.0.1. My host file clearly has a record as 127.0.0.1 localhost.
But
when I PING localhost from a cmd window the result is:

C:\Documents and Settings\Tom>ping localhost
Pinging CLAFFY1 [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

NO IP ADDRESS! I have spent hours searching for this. Any help anywhere???
I
need localhost to resolve so I can open my solution in VB.NET

Sorry if this is a stupid question but are you putting http:// in front of
localhost i.e. http://localhost ?
 
G

Guest

That's irrelevant. Either way should work.

Tony said:
Tom C said:
My localhost appears to be wacked. I have a website configured in IIS and
I
can browse it in IIS. I can browse the same website by addrssing it with
my
static IP address IE howeverwhen I try to hit it with localhost/<name> it
goes to MSN search. IpConfig /displaydns clearly shows a record for
localhost
as 127.0.0.1. My host file clearly has a record as 127.0.0.1 localhost.
But
when I PING localhost from a cmd window the result is:

C:\Documents and Settings\Tom>ping localhost
Pinging CLAFFY1 [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

NO IP ADDRESS! I have spent hours searching for this. Any help anywhere???
I
need localhost to resolve so I can open my solution in VB.NET

Sorry if this is a stupid question but are you putting http:// in front of
localhost i.e. http://localhost ?
 
T

Tony

Tom C said:
That's irrelevant. Either way should work.

It may be irrelevant but I tested it on my PC and without the http in front
it went to MSN search. With http in front it worked fine.

Just tried it on a Linux machine as well. Localhost on its own doesn't
work. http://localhost does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top