Re: How to hide "localhost"

From: Kevin Spencer (kspencer_at_takempis.com)
Date: 09/27/04


Date: Mon, 27 Sep 2004 15:09:52 -0400


"localhost" is the default Domain name of the local machine. It maps to IP
Address "127.0.0.1" (local loopback). Therefore, on any machine which uses
"localhost" in a URL, a redirect will always go to their local web server
(if any) or throw an exception. For this reason, you should NEVER use the
string "localhost" in your app, unless you plan to run it only locally.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Greg Cyrus" <nospam@muelltonne.de> wrote in message
news:cj9mq4$cvk$04$1@news.t-online.com...
> Hi,
>
> in a Page_Load I use:
> Response.Redirect("http://localhost/WebApplication3/frmDefault.aspx")
>
> Now the IExplorer shows "http://localhost/WebApplication3/frmKopf.aspx"
in
> the adress-field. Is the name "localhost" shown in my ieplorer only - if
not
> how can I rename it (or shouldn't I).
>
> Greg.
>
>
>


Relevant Pages

  • Re: Cannot get mysql_connect to work
    ... I guess I'm a little confused about localhost. ... On the local machine. ... localhost refers to a specifc directory path on the local ...
    (comp.lang.php)
  • ISA 2000 problem on SBS 2000
    ... I am trying to setup some exam testing software on a workstation which ... require the local machine to open a localhost address (Catlglobal ... from the root of the ISA server or would this replicate throughout all the ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: ISA 2000 problem on SBS 2000
    ... require the local machine to open a localhost address (Catlglobal ... mess up the OWA settings. ... from the root of the ISA server or would this replicate throughout all the ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Test internet from emulator
    ... I was trying to connect to localhost instead of the ip of my local machine. ... Too used to desktop development. ... Rog wrote: ...
    (microsoft.public.dotnet.framework.aspnet.mobile)
  • Re: Latest Solaris 9 recommended patches broke sendmail
    ... Kevin Brammer wrote: ... arch). ... I can't get any locally generated email out of the local machine. ... I get an error which says the localhost rejected the relay. ...
    (comp.unix.solaris)