It is possible that the remote database won't allow a connection from your local server. I'd contact your hosting provider to see if that is possible and what settings to use if it is. Usually it is not possible to do that, which is why people set up a local database for testing locally.