Networking Forums

Networking Forums > Computer Networking > Windows Networking > difference between localhost and `computename`

Reply
Thread Tools Display Modes

difference between localhost and `computename`

 
 
yufufi
Guest
Posts: n/a

 
      07-29-2004, 08:18 PM

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




 
Reply With Quote
 
 
 
 
Miha Pihler
Guest
Posts: n/a

 
      07-29-2004, 09:23 PM
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
>
>
>
>



 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a

 
      07-31-2004, 10:29 PM
On Thu, 29 Jul 2004 23:18:24 +0300, "yufufi" <(E-Mail Removed)>
wrote:

>what is the difference between (what is going on at the background ?)
>http://localhost/


Localhost resolves to 127.0.0.1, on all systems, and is a designation
for "the physical computer I'm sitting at". It won't reach a
different system, because that system can never be the local host.

>http://computer_name/


ComputerName is a NetBIOS name, not a TCP/IP name, and resolves
through netBIOS. This means Cache first, then WINS, Broadcast and
LMHosts before trying Hosts and finally DNS to resolve. If you don't
have a NetBIOS name resolution connection between systems, it won't
work.

>http://ip/ (like http://195.174.86.185)


The IP of the system. This is the universal address, and a name
resolves to this, so using it bypasses any name resolution and goes
directly to that address, assuming it is reachable from the client
system.

>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 ???


That's a client setting. IE won't pass credentials for hosts it
doesn't know are in the trusted network. Add the system name to the
Intranet security zone in IE and it will work fine. It will also work
if the SystemName is the same as the DNS host name and both client and
server are in the same domain.

Jeff
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Localhost john Windows Networking 3 02-11-2008 01:31 PM
Squid and localhost Nate Linux Networking 2 05-03-2007 09:01 PM
getnameinfo() and localhost dkishenko@gmail.com Windows Networking 0 10-25-2006 07:54 AM
Can not ping LOCALHOST:( lioh Windows Networking 1 11-23-2005 01:21 PM
No route to localhost vininche@gmail.com Linux Networking 7 06-08-2005 08:05 AM



1 2 3 4 5 6 7 8 9 10 11