Re: replay by changing the URL is not working in LR
Are you sure of the new URL not being re directed.
You may want to try recording a new script(with new URL) just for Login. re check the URL and then replace the URL with the earlier script.
Suggestively, you could capture the complete URL (including port number) in a parameter to be executed on another instance of the application