Lasso Soft Inc. > Home

[ client_ip ]

Method

[client_ip] returns the IP address of the current client.

The [client_ip] method can be used in a conditional expression compared with a string that contains wildcards.
[If(Client_IP == '10.*.*.*')] ... [/If] will return True for any clients that are on machines in the 10.x.x.x subnet.

Returning the result of [client_ip] is equivalent to [web_request->remoteAddr]

  • Syntax
  • Methods
  • Traits
client_ip
Has methods:
Has traits:
Examples
  • Beginner

To display the IP address of the current client:

Use the [Client_IP] method.

Code

client_ip

Result

127.0.0.1

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft