Were you able to connect to your remote server before. Some hosting providers might have a limitation in connecting to the database remotely.
I would try connecting to your database using the Database panel (Window -> Databases), and if you are getting an error connecting, i would recommend contacting your hosting provider and asking them if you are able to connect to your database remotely.