Home Forums ActiveX components Other ActiveX components I am using a ConnectionOriented socket. How to I retrieve the IP address of the incoming connection

Viewing 1 post (of 1 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #43156 |

    In order to retrieve information on the incoming connection, you will need to do the following in the OnConnectionProcessed event:

    Dim xLocalSocket As ConnectionOrientedSocket
    Dim xAddr As InetAddress

    Set xLocalSocket = xIncomingSocket
    Set 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)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.