public Optional < ServerPort > activePort ( ) { final Server server = this . server ; return server != null ? server . activePort ( ) : Optional . empty ( ) ; }
Returns the primary port of the server .