Add support for custom port (fixes #69)