[Server_ExternalIP]

Description

Link: [Server_ExternalIP]
Author: John Burwell
Category: Networking
Version: 8.x
License: Public Domain
Posted: Apr. 14, 2006
Updated: Apr. 14, 2006
More by this author...
For servers behind firewalls, NAT routers, or other Internet obstructions, this tag reports the IP address at which the outside world can find your server.

Parameters

none


Sample Usage

[Server_ExternalIP]
						

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
1
2
3
4
5
6
7
8
Define_Tag: 'Server_ExternalIP',
  -Description='Returns the external IP address of the server, reported by DynDNS.org, as a string.';

  Return: (String_FindRegExp: (Include_URL: 'http://checkip.dyndns.org/'),
    -Find='\\d+\\.\\d+\\.\\d+\\.\\d+')->(First);

/Define_Tag;

 

Comments

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net