Basically the same connection string should work especially since you're using SQL server authentication.
Id suggest checking that the instance isn't a named instance and if it is, provide the name for the instance in the data source. For complete examples, have a look at
https://www.connectionstrings.com/sql-server/[
^]
If the hosted database is clustered then you most likely need to define the port.