Sending a message through a particular client port in remoting
I am doing applications in .net remoting.actually we 开发者_开发百科register a channel in the server side and connect the client using the iP and port of the server,but i want to send my messages from client through a specific port for ex: 8085 or 8086.how to achieve this?
Why? There are numerous disadvantages to specifying the client port:
- the client must effectively be single-threaded
- TCP will impose a two-minute TIME_WAIT before you can reuse the port.
Firewall administrators sometimes like to create these rules not realizing that they cripple the client. Such rules don't actually server any useful purpose that I'm aware of.
精彩评论