Is there a way to specify the local port to used in tcpClient?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-05-19T22:16:12Z Indexed on 2010/05/19 22:20 UTC
Read the original article Hit count: 200

Filed under:
|

Hi:

I am currently using this function call to create my tcpClient:

clientSocket = new TcpClient("localhost", clientPort);

But the clientPort is the server's port.

Is there a way for me to specify the client port using tcpClient?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about socket