Retrieve server port

Depends pull request #8