tags:

views:

39

answers:

1

hi

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?

+1  A: 

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.

EJP
if possible please tell mehow to achieve this
karthik
will u tell me how to do that?
karthik
I asked you why? You need to answer that. I strongly doubt that this is what you should be doing.
EJP
my network administarators blocked all the ports and i am supposed touse the only port they give? thats the reason ok
karthik
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.
EJP