Hello.
I'm using TcpClient class to connect to a TCP server.
Is there any way to set the client port to open when connecting to the server by TcpClient class (not the port of the server).
I'm googling it for 2 days and nothing...
I'm doing some simulation for some hardware which uses an predefined port, but my TcpClient uses the first available port. Not good. :S
Thank's
Loading
Bechir BejaouiPosted Nov 14, 2008, 4:07 AM
Marko CericPosted Nov 5, 2008, 1:39 AM
Bechir BejaouiPosted Nov 4, 2008, 6:10 PM
for example
But 11002 is in fact the server por, In general the client port value is already set to 0, and it has to be in order to let system in the client side decide what is the suitable port to use, therefore it has no needs to set the tcp client port