[program-l] .NET Remoting and Ports
- From: David Lant <david.lant@xxxxxxxxxxxx>
- To: "Program-L List (Program-L@xxxxxxxxxxxxx)" <Program-L@xxxxxxxxxxxxx>
- Date: Fri, 25 Feb 2005 12:28:29 -0000
Hi,
I think I'm finding a whole area of technology that I may need to learn
about, with no time to do it.
When using .NET Remoting, one needs to register the communication channels
at both the server and client. In all the examples, the channels are
assigned to specific port numbers, like 8080. However, I have also seen
that at least for the client, it is possible to get the .NET Remoting system
to choose an available port simply by assigning a port number of 0.
My questions are:
1. If a client has a TCP channel registered on port 0, thus getting the .NET
Remoting system to allocate a free channel, will the remoting system only
allocate a channel if it is registered by the remotable object's host? Or
would it choose any free channel? If the latter, how does the server know
which channel to listen on?
2. If it is preferable to specify a channel number, rather than let the .NET
remoting system allocate one dynamically, what is the best way to go about
choosing the port numbers to use? I've seen various references to a web
site which records registered ports, but I suspect that is only for Internet
applications. I'm building strictly internal network applications, so
wouldn't have thought that resource was necessary.
3. I assume I'm correct in thinking that a server can't be given a channel
registered to port 0, as it wouldn't know in advance what port to listen on
for client activation requests.
For reference, I'm currently working on the client activated object model,
as the server activated object model actually doesn't work for the scenario
we're using. It was the reason I contacted MS support, and hence my
reversion to CAO.
David Lant
I.T. Consultant
Consultancy & Development
ICT Services
Tel: (01392) 382464
Devon County Council accepts no legal responsibility for the contents of
this message. The views expressed do not reflect those of Devon County
Council.
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
Other related posts:
- » [program-l] .NET Remoting and Ports