GetLocalIP

Advanced
Aptilis 1

GetLocalIP()

GetLocalIP returns the IP of the machine your aptilis program is running on.
This can be used in conjunction with Call or TakeCalls for exemple to check that the calls are coming from the same machine if you don't want anyone else to access your script.

Return value:
Your local ip number, in a string or -1 in case of error and _errno may contain more details.

Example:

ip = getLocalIp()
print(ip$)

Result:
192.1.1.16