WebRequest.GetLocalIP
---------------------

Queries local IP for web hook.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebHook](component_WebHook.md) | [11.5](newinversion115.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "WebRequest.GetLocalIP"; WebRequest ) 

**MBS**( **"WebRequest.GetLocalIP";** /\* Queries local IP for web hook. \*/  
**$WebRequest**) /\* The reference number of the web request. \*/ 

### 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](WebRequestGetLocalPort.md)"; $WebRequest ) \]  
### See also

- [WebRequest.GetLocalPort](WebRequestGetLocalPort.md)
- [WebRequest.GetRemoteIP](WebRequestGetRemoteIP.md)

### Example Databases

- [WebHook/WebHook](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebHook/WebHook.shtml#2ScriptAnchor_)

This function is free to use.

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

  
[WebRequest.GetHost](WebRequestGetHost.md) - [WebRequest.GetLocalPort](WebRequestGetLocalPort.md)

[HTML Version](WebRequestGetLocalIP.shtml)