Link to home
Start Free TrialLog in
Avatar of junnz
junnz

asked on

Question about Indy Socket components in Delphi 6

Can we run TCP client and TCP server on the same machine with Indy Sockets and how?
ASKER CERTIFIED SOLUTION
Avatar of rondi
rondi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of edey
edey

Just wondering, but are you sure about that?  I know you can do that with the UDP vcl's, but UDP is a connectionless protocol - I would think that trying that with the TCP vcl's would result in a challenge with the port already being in use. I don't know for sure - I'd have to try it.

GL
Mike
Ive done it myself in the past.  Albeit not with the INDY component suite, but I see no reason why it would work with one set of winsock controls and not with another.
Only the server binds to port a port number that it's listenin on for connections. The client doesn't
bind to a port to make a connection, so the two don't get in each other's way