On 18/03/2013 08:56, Jan Ehrhardt wrote:
> Hello,
> 
> I want to use Tomcat embedded to my application, but I do not want to set a
> fixed port. Instead I want Tomcat to choose a free port itself. This works
> of cause by setting the port to 0, but asking the Tomcat object for the
> port, will return 0 instead of the currently chosen port. Is there any
> working way to get the port, which has been chosen by network stack?

Connector.getLocalPort()

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to