Getting Information About the Client or Server Socket Connection
Go Up to Using Socket Components
After completing the connection to a client or server socket, you can use the client or server socket object associated with your socket component to obtain information about the connection.
Use the Host and Port properties to determine the address and port number used by the local client or server socket.