I have a Java Web application deployed on a Compute Engine instance connecting to MySql running on another Compute Engine instance in the same project. I am able to connect to MySql using the internal IP address (jdbc:mysql://
10.240.0.4:3306/<db_name>).
If I deploy the same web application to an App Engine instance within the same project, I can only connect to the MySql instance via the extermal IP address (jdbc:mysql://
104.196.148.141:3306/<db_name).
If I try to use the internal IP address, I get a Communication Link Failure, Permission Denied due to policy.
My question is how do I open up communication between an App Engine instance and a Compute Engine instance via an internal IP address? The performance is about 5 x faster when using the internal IP address.
Any help would be much appreciated