Expose port number setting

[fixes GH-53]