reverting port detection to the url so we can pass via config