Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple clients connecting to a server via Winsock in VB?

Status
Not open for further replies.

jbrimble

Programmer
May 13, 2002
10
AU
Hey? does anyone know how to connect multiple clients to a winsock server program that was written in Visual Basic? Jason Brimblecombe

Webmaster of OCX Review
 
Without knowing much about the specific application, I'm assuming you're concerned about client port conflicts.

What I would do is have the client randomize a port within say 6000-6999 for example. Then send via UDP to the server it's identification and port information. Then the server will know what port to talk to the client on. Each client could then use a different port.

I hope that's what you're getting at. Hope it helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top