Socket.RemoteIP
---------------

Returns IP of the remote socket.

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

MBS( "Socket.RemoteIP"; SocketID ) 

**MBS**( **"Socket.RemoteIP";** /\* Returns IP of the remote socket. \*/  
**$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 or error message.

### Description

Returns IP of the remote socket.  
Only for TCP Sockets. For UDP Sockets, pelase use [Socket.LastMessageIP](SocketLastMessageIP.md).  
### See also

- [Socket.Connect](SocketConnect.md)
- [Socket.LastMessageIP](SocketLastMessageIP.md)
- [Socket.RemotePort](SocketRemotePort.md)

### Example Databases

- [Network/HTTP Server hosted](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/HTTP%20Server%20hosted.shtml#2ScriptAnchor_)
- [Network/HTTP Server local](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/HTTP%20Server%20local.shtml#2ScriptAnchor_)
- [Network/Socket Test/Socket Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/Socket%20Test/Socket%20Test.shtml#2ScriptAnchor_)
- [Network/TCP Send and Receive/TCP Receiver](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/TCP%20Send%20and%20Receive/TCP%20Receiver.shtml#2ScriptAnchor_)

This function is free to use.

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

  
[Socket.ReadMLLP](SocketReadMLLP.md) - [Socket.RemotePort](SocketRemotePort.md)

[HTML Version](SocketRemoteIP.shtml)