| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
CURL.GetLocalIP
Queries local IP.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.GetLocalIP"; curl ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
Result
Returns the requested value or nothing on error.
Description
Queries local IP.Get a string holding the local (source) IP address of the most recent connection done with this curl handle.
This string may be IPv6 if that's enabled.
Examples
Query local IP:
Let([
curl = MBS("CURL.New");
// we need to do something
r = MBS("CURL.SetOptionURL"; curl; "https://www.monkeybreadsoftware.de");
r = MBS("CURL.Perform"; curl);
// now we can get the IP used to connect
localIP = MBS( "CURL.GetLocalIP"; curl );
r = MBS("CURL.Release"; curl)];
localIP)
curl = MBS("CURL.New");
// we need to do something
r = MBS("CURL.SetOptionURL"; curl; "https://www.monkeybreadsoftware.de");
r = MBS("CURL.Perform"; curl);
// now we can get the IP used to connect
localIP = MBS( "CURL.GetLocalIP"; curl );
r = MBS("CURL.Release"; curl)];
localIP)
See also
Example Databases
This function checks for a license.
Created 18th August 2014, last changed 22nd June 2026
MarkDown version: CURLGetLocalIP.md