A database server would almost never start with "www."
Contact your hosting provider and find out if it allows remote connections and what to use as the hostname. Dreamweaver can connect to it because it actually sends a file to your remote server and gets the content from the remote server and doesn't use the local files to connect to the database.