Share via


Visual Basic: Winsock Control

RemoteHostIP Property

See Also    Example    Applies To

Returns the IP address of the remote machine.

  • For client applications, after a connection has been established using the Connect method, this property contains the IP string of the remote machine.

  • For server applications, after an incoming connection request (ConnectionRequest event), this property contains the IP string of the remote machine that initiated the connection.

  • When using the UDP protocol, after the DataArrival event occurs, this property contains the IP address of the machine sending the UDP data.

Syntax

*object.*RemoteHostIP

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Data Type

String