[ale] JavaScript and server address

Katherine Villyard villyard at comcast.net
Tue Jun 5 10:59:15 EDT 2007


If that doesn't do it, try having a server side scripting language (php, 
whatever) generate the javascript and let the server include the IP 
address as a variable in that generated script.

Katherine

Christopher Fowler 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
>>>       
>>     
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>   




More information about the Ale mailing list