ipaddress
ipaddress
IP
,
ZONE

The ipaddress statement returns the current IP address of the computer, or “” if not connected.

Parameters

This statement has two parameters:

ip – Field or variable to contain the IP address, or `0.0.0.0` if no such address.

zone – specifies whether you want the address on the local network (`INTERNAL`), or the public address of your router (`EXTERNAL`). If omitted, the default is `INTERNAL`.

Description

This statement returns the current IP address of the computer, or “” if not connected. This example displays your computer’s IP address on the local network.

    local ip
    ipaddress ip
    message ip

This example displays your router’s IP address.

    local ip
    ipaddress ip,"external"
    message ip

See Also

- encodehttppostdata( -- converts a dictionary into HTTP post data.
- info("httpheaders") -- returns a dictionary with information about a just completed HTTP download.
- info("urltaskinfo") -- returns information about a just completed HTTP download.
- loadurl -- loads a resource from the internet.
- loadurl( -- loads a resource from the internet.
- posturl -- loads a resource from the internet, with form data.
- posturl( -- loads a resource from the internet, with form data.
- url( -- synchronously loads a resource from the internet.
- urltask( -- asynchronously loads a resource from the internet.
- urltaskcancel -- aborts a download initiated with the urltask( function.
- urltaskstatus -- enables connection error checking in urltask( completion code.
- zipinfo -- queries the web to obtain information about a zip code.
- zipinfoplus -- queries the web to obtain information about a zip code.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama.