normally the mySQL host should not use an IP address.
you should be able to access the database using phpMyAdmin.
in the top left corner, it will show the server address with the database name, use that server address for the host in the connection file.
if you are sure you have the correct information in the connection, you will need to work with the host to determine why it is being rejected by the server.