Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

WebRequest.GetLocalIP

Queries local IP for web hook.

Component Version macOS Windows Linux Server iOS SDK
WebHook 11.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "WebRequest.GetLocalIP"; WebRequest )   More

Parameters

Parameter Description Example
WebRequest The reference number of the web request. $WebRequest

Result

Returns text or error.

Description

Queries local IP for web hook.
Should be localhost: 127.0.0.1 for IPv4 or ::1 for IPv6.

Examples

Queries local IP and port:

Set Field [ WebHook::Local IP ; MBS("WebRequest.GetLocalIP"; $WebRequest) ]
Set Field [ WebHook::Local Port ; MBS("WebRequest.GetLocalPort"; $WebRequest) ]

See also

Example Databases

This function is free to use.

Created 13th October 2021, last changed 25th October 2021


WebRequest.GetHost - WebRequest.GetLocalPort

💬 Ask a question or report a problem