Avatar of RETAILREALM
RETAILREALM
Flag for United States of America

asked on 

Win sock connect with multiple port

Hi
We are using Winsock control to connect to external program whose  ip address let’s say 192.168.1.1
Now we need to talk with that control on port 25000
This is fine as we are connected to the same port

    TCPClient.RemoteHost = "192.168.1.1"
    TCPClient.RemotePort = 25000
   TCPClient.Connect

But at the same time external programmer is broadcasting some messages on port 25001 , how can we listen to that port ( we don’t need to send data to this port only listen ) using the same winsock or there is any other method.
Visual Basic Classic

Avatar of undefined
Last Comment
VBClassicGuy

8/22/2022 - Mon