Added serverPort() method returning the listening port of the server

Added serverPort() method returning the listening port of the server. The method is the only way to find the current port used, when the listen() methods are called with port 0 (find the first available port).