Can not connect to MySql server remotely
A MySQL user has a "from host" field. This is probably set to some IP and those mismatch, giving you that error.
This field allows for extra security and can be set to any IP/hostname.
If this field is set for the user then you can only login to the MySQL server with that user from the IP/hostname specified.
If you want to test your connection you can just use a wildcard for the "from host" field % so that any IP can connect using that user, I wouldn't recommend this in a product environment though.