Detect Gateway IP address in windows

Alex Tweedly alex at tweedly.net
Fri Oct 8 17:02:43 EDT 2004


At 17:09 08/10/2004 -0300, Andre Garzia wrote:

>On Oct 8, 2004, at 4:07 PM, Chipp Walters wrote:
>
>>You can always parse:
>>
>>http://www.whatismyipaddress.com/
>
>http://checkip.dyndns.org/
>
>is easier to parse, just split on the ":"

remember these will give you different answers depending on whether you 
have a public IP address or are behind a NAT box. If' you're behind a NAT, 
I believe you'll get the external address of the NAT box.

And, of course, sometimes you may have a gateway address, but no current 
connection, so they won't always work.

-- Alex.


More information about the use-livecode mailing list