Opening a shared databases remotely using a URL is described on this help page:
Per those instructions, you can include the user name and password like so:
However, this technique fails if the account being logged into is required to change its password on log in. In that case, FileMaker behaves the same as if an incorrect password was entered in the fmp URL. That is to say, it challenges the user to Provide the user name and password.