[ale] JavaScript and server address

James Sumners james.sumners at gmail.com
Tue Jun 5 09:43:08 EDT 2007


That is the object I referenced in my previous email. It only accesses
the information in the URL field of the client. I did not know about
the additional properties, though. I only knew `window.location` would
return the URL. I guess you are looking for `window.location.host`.

On 6/5/07, Christopher Fowler <cfowler at outpostsentinel.com> wrote:
> I think this is it:
>
> http://www.w3schools.com/htmldom/dom_obj_location.asp
>
> On Mon, 2007-06-04 at 20:41 -0400, James Sumners wrote:
> > JavaScript is executed client side so it has no knowledge of the
> > server that served it.
> >
> > On 6/4/07, Christopher Fowler <cfowler at outpostsentinel.com> wrote:
> > > Can someone tell me how in JavaScript to get the IP Address of the
> > > server.  I have found many examples of how to get the one of the client
> > > but I'm trying to get the address of where the html page originated.  I
> > > want to pass it to an external program so it can connect to a proxy.
> > >
> > > Chris


-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59



More information about the Ale mailing list