TCP / IP programs (both Client and Server) can be safely started from Delphi.
The only thing that may worry about your FireWall settings, but it may not be a problem, is that your program has access to the network.
During debugging, if you do step-by-step (F7 / F8 keys), only one thread starts, so any background thread (for example, server thread) will not work.
You must start the Server before starting the Client at your discretion.
I never used the TTCPClient and TTCPServer classes, which turned out to be erroneous ... try using a different framework like Indy, Synapse or our SynCrtSock.
What version of the Delphi IDE are you using? What operating system?
A. Bouchez
source share