.remoteip R/O Property

Function:

For the currently selected socket (selection is made through sock.num), returns the IP address of the host with which this socket had the most recent or currently has a connection.

Type:

String

Value Range:

Default = "0.0.0.0"

See Also:

sock.remotemac, sock.remoteport, sock.bcast


Details

The application cannot directly change this property, it can only specify the target IP address for active opens through the sock.targetip property.

For UDP connections, when the on_sock_data_arrival event handler is entered, sock.remoteip will contain the IP address of the sender of the current datagram being processed. Outside of the on_sock_data_arrival event handler, the property will return the source IP address of the most recent datagram received by the socket.


.remoteip R/O Property

Details