• November 15, 2020
  • Admin
  • FAQs

Both the ConnectSock method and the AddListener method accept an
AdapterNumber parameter that specifies which interface to perform the method on. If omitted, SocketQ will attempt to Listen on all interfaces, or connect on the appropriate interface. If you do not know what your IP addressed are, SocketQ’s LocalHostIPAliases property is a zero based array containing the IP addresses for all interface cards on the system, and can be used to programmatically retrieve IP addresses for the local machine. If the IP address you want to retrieve is dynamically assigned (i.e. you use a dial-up connection to the internet), you must first connect, call the ActivateWinsock method, and then retrieve the LocalHostIPAliases property. Alternatively, once the application has made a connection, the LocalIP method can be used.