Socket.LastMessageIP
--------------------

Returns the IP from the last message received.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Socket](component_Socket.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Socket.LastMessageIP"; SocketID ) 

**MBS**( **"Socket.LastMessageIP";** /\* Returns the IP from the last message received. \*/  
**$SocketID**) /\* The socket ID received by [Socket.Connect](SocketConnect.md) function.e.g. $sock \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SocketID | The socket ID received by [Socket.Connect](SocketConnect.md) function. | $sock |

### Result

Returns IP of error message.

### Description

Returns the IP from the last message received.  
### See also

- [Socket.Connect](SocketConnect.md)
- [Socket.LastMessagePort](SocketLastMessagePort.md)
- [Socket.Read](SocketRead.md)
- [Socket.RemoteIP](SocketRemoteIP.md)

### Example Databases

- [Network/UDP/UDP Broadcast](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/UDP/UDP%20Broadcast.shtml#3ScriptAnchor_)
- [Network/UDP/UDP Receiver](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/UDP/UDP%20Receiver.shtml#2ScriptAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[Socket.LastError](SocketLastError.md) - [Socket.LastMessagePort](SocketLastMessagePort.md)

[HTML Version](SocketLastMessageIP.shtml)