Hi All
We are using Windows service in C#.net with Socket communication. There is a Client and server machines and receiving message from client and sending response from server with single port. Now the requirement is need to create 2 ports for each customer, one for receiving and one for sending the message. How to implement in C#.net with socket communication. Please help me on this.
How to allocate multiple ports for each customer?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 23, 2013, 4:08 AM EDT
I think its not possible.
When you connect with the server, you will be setting an IP & Port. So whenever you send msg to that server/client, it will use the same IP & port.
guru moorthy27 reputationPosted Oct 23, 2013, 4:40 AM EDT
Thank you for reply,
I understood what you mentioned, and is it possible or not to create seperate port for Inbound and another for Outbound. The purpose of this, to avoid the timeout while process the message. There are multiple clients sends the message concurrently to avoid the breakage of ACK messages.
thank you, once again for reply.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 23, 2013, 5:21 AM EDT