Groups | Blog | Home
all groups > dotnet remoting > april 2005 >

dotnet remoting : Event callback port 0 and security


thanasis bouk via DotNetMonster.com
4/21/2005 12:00:00 AM
Hi

OK. In order to communicate with a remotable object, I leave the port I've
set in the config file open.

But how on earth can I know what port .net remoting chooses for callback
events (port="0") in order to leave it opened too?

Mehdi
4/22/2005 12:00:00 AM
On Thu, 21 Apr 2005 07:50:03 GMT, thanasis bouk via DotNetMonster.com
[quoted text, click to view]

When you specify port 0 at the channel creation, .NET Remoting chooses a
port that is not already in use for you. You can not know in advance what
this port is going to be. If you need to open the port used for event
callback on your firewall then just specify a port when you are creating
your client channel. This way, the port is always going to be the same.
Just take care of not choosing a port that may be used by another
AddThis Social Bookmark Button