LocalAddress and Ephemeral ports - how do I find out where Netty bound?
Florian Leibert
florian at twitter.com
Fri Apr 9 11:42:47 EDT 2010
I want to use an Ephemeral port for my Netty service. (useful b/c I want to
run multiple services on one physical machine, unit tests etc.) Binding
seems easy, just using a new LocalAddress(LocalAddress.EPHEMERAL) - what I
found odd was that binding to a InetSocketAddress(0) doesn't seem to work
(which usually will ask the OS for a available port.
The question is, how do I obtain the port that Netty bound to using the
LocalAddress mechanism?
Thanks,
Florian
--
View this message in context: http://n2.nabble.com/LocalAddress-and-Ephemeral-ports-how-do-I-find-out-where-Netty-bound-tp4877832p4877832.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list