Jay Callas
9/15/2004 4:15:00 AM
I want to register my remote object on a random tcp port. I do this with the
following code:
Dim channel as new TcpChannel(0)
Now I need to extract the port number that was used.
The only way I can find to do this is to cast the variable as
ChannelDataStore, get the ChannelUris property, take the first item from the
returned array of strings, and then parse it looking for a colon (which
seprates the ip address from the port number).
There's GOT to be an easier way but I cannot seem to find it.
Any ideas?
- Jason