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?
Asked
Active
Viewed 470 times
1 Answers
1
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.

user207421
- 305,947
- 44
- 307
- 483
-
if possible please tell mehow to achieve this – karthik Mar 01 '10 at 05:57
-
will u tell me how to do that? – karthik Mar 01 '10 at 11:50
-
I asked you why? You need to answer that. I strongly doubt that this is what you should be doing. – user207421 Mar 02 '10 at 00:25
-
my network administarators blocked all the ports and i am supposed to use the only port they give? thats the reason ok – karthik Mar 09 '10 at 14:38
-
If the network administrators are trying to administer outbound ports they need re-education. Controlling outbound port numbers adds nothing by way of security; it cripples client applications by only letting them use a single connection at a time and enforcing a two-minute delay between closing a connection and opening the next one; and in the cases sometimes seen where they allow a range of outbound ports there is no TCP API that will support that, so they are creating programming difficulties or impossibilities. Show them this thread and ask them to justify their policy. – user207421 Mar 10 '10 at 02:58