Home › Forums › ActiveX components › Other ActiveX components › I am using a ConnectionOriented socket. How to I retrieve the IP address of the incoming connection
In order to retrieve information on the incoming connection, you will need to do the following in the OnConnectionProcessed event:
Dim xLocalSocket As ConnectionOrientedSocketDim xAddr As InetAddress
Set xLocalSocket = xIncomingSocketSet xAddr = xLocalSocket.RemoteAddress
You can now retrieve the IP address and port by using the GetAddressString method of the Address class.
Call MsgBox( xAddr.GetAddressString )
Imported from legacy forums. Posted by Xceed admin (had 1464 views)