Adding ability to take custom port number out of the url passed in