Getting Information About the Client Socket Connection
Go Up to Using Client Sockets
After completing the connection to a server socket, you can use the client socket object associated with your client socket component to obtain information about the connection. Use the Host and Port properties to determine the address and port number used by the client and server sockets to form the end points of the connection. You can use the Address property to obtain the address of the socket connection to use when making socket calls.