Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style
Scripting_function


Panel
titleDescription

Returns the clientClient's IP address, as it is detected by the Gateway. This means that this call will communicate with the Gateway, and the Gateway will tell the client Client what IP address its incoming traffic is coming from. If you have a client behind a Network Address Translation (NAT) router, then this address will be the Wide Area Network (WAN) address of the router instead of the Local Area Network (LAN) address of the Client, which is what you'd get with system.net.getIpAddress.

Client permissions restrictions


Panel
titleSyntax

system.net.getExternalIpAddress()

  • Parameters

Nothing

  • Returns

String - A text representation of the Client's IP address, as detected by the Gateway.

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet
# Put this script on a navigation button to restrict users from opening a specific page.
 
ip = system.net.getExternalIpAddress()
# check if this matches the CEO's IP address
if ip == "66.102.7.104":
   system.nav.swapTo("CEO Dashboard")
else:
   system.nav.swapTo("Manager Dashboard")
Panel
titleKeywords

system net getExternalIpAddress, net.getExternalIpAddress