Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Socket.RemotePort

Returns port of the socket on the other side.

Component Version macOS Windows Linux Server iOS SDK
Socket 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Socket.RemotePort"; SocketID )   More

Parameters

Parameter Description Example
SocketID The socket ID received by Socket.Connect function. $sock

Result

Return port number or error message.

Description

Returns port of the socket on the other side.
Only for TCP Sockets. For UDP Sockets, pelase use Socket.LastMessagePort.

See also

Example Databases

This function is free to use.

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


Socket.RemoteIP - Socket.SSL.Accept