This function returns port number for the running server. By default, a random available port is used. One can also
set a port number as an argument of the openPage
function. The port number can't be changed after the app
was initialized.This function
is a wrapper around method getPort
of the class App
.