Re: difference between localhost and `computename`
From: Miha Pihler (mihap-news_at_atlantis.si)
Date: 07/29/04
- Next message: Phillip Windell: "Re: Password Complexity Problem"
- Previous message: Miha Pihler: "Re: DHCP Problems"
- In reply to: yufufi: "difference between localhost and `computename`"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Jul 2004 23:23:49 +0200
Hi,
localhost is (should be) resolved to 127.0.0.1. It is resolved using host
file (usually %systemroot%\system32\drivers\etc).
If you in your browser enter http://10.10.10.10/default.asp and you have
e.g. Integrated authentication checked on your IIS your computer (browser)
will send your username and password to the server to identity you. It does
this because 10.10.10.10 by default falls into Local Intranet zone
(10.10.10.10 is a private IP defined in RFC 1918 along with other IPs in
10.0.0.0 range, 172.168.16.0 - 172.31.255.255 and 192.168.0.0).
This will also happen if you enter http://mike/default.asp since again
"mike" is part of local intranet site. If I enter http://mike.krneki.net
then my browser by default won't send my username and password to the site,
since this site by default falls under Internet zone (why would by browser
send my username and password to the internet -- right) :-). Again this can
be solved manually by e.g. adding http://mike.krneki.net under Local
Intranet zone in my IE and again my browser will know that it has to send my
credentials to the site if it requests...
I hope this helps,
Mike
"yufufi" <yufufi@ttnet.net.tr> wrote in message
news:uize1kadEHA.3560@TK2MSFTNGP10.phx.gbl...
>
> what is the difference between (what is going on at the background ?)
> http://localhost/
>
> http://computer_name/
>
> http://ip/ (like http://195.174.86.185)
>
> one thing I found out is , in a local network environment. If I point my
> links to http://computer_name/index.aspx people trying to access the page
> have to log on but when I go with http://ip/index.aspx their windows logon
> is automatically recognized ???
>
> thanx in advance,
>
> yufufi
>
>
>
>
- Next message: Phillip Windell: "Re: Password Complexity Problem"
- Previous message: Miha Pihler: "Re: DHCP Problems"
- In reply to: yufufi: "difference between localhost and `computename`"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|