fetch port for url from request, fixes #13