Correctly parses the url in the format localhost:8001