How to get IP address in Javascript?



Hi all,

I need to get the IP address of client machines
from inside Mozilla, Netscape, and IE.

Many webpages say to use in Netscape 4+
the expression

var ip = java.net.getLocalhost.getIpAddress()

This for me always returns 127.0.0.1.

Is this a bug or should I get trying to retrieve
an array of addresses and then scan that?

Thanks.

.



Relevant Pages

  • Problem with INPUT TYPE=RADIO generated from JAVASCRIPT.
    ... I have a problem with radio buttons generated from Javascript. ... code works fine on Netscape 7.1 and Mozilla FireFox but fails ... fine on Netscape and Mozilla. ... var sel = document.getElementById; ...
    (comp.programming)
  • Re: object expected error
    ... Thomas 'PointedEars' Lahn wrote: ... var x = { ... // displays z function body ... (this fact may be confirmed by Netscape 4.5 behavior which is equal to ...
    (comp.lang.javascript)
  • Re: Scpecial Chars - ?i to ? - charset
    ... > When i debug my var on phped, ... > browser, netscape or IE i see 'Amap?i'. ...
    (comp.lang.php)
  • Re: JavaScript - puzzling code given
    ... var with "Netscape" makes Netscape happy ... Please note the problem with the first 2 display boxes ceasing to work, and tell me what the he77 is going on. ...
    (comp.lang.javascript)
  • cant unescape image path in Netsacpe, adding image to td
    ... When I try to use the DOM to add an image to a table cell, it works in IE but not in Netscape. ... var tbl = document.getElementById; ... var lastRow = tbl.rows.length; ...
    (comp.lang.javascript)