Connection to SQL(MySQL) server on gcloud from mobile network - google-cloud-sql

I am trying to connect 3 beckhoff plc's to my MySQL database on gcloud.
1 plc is on our home network, the 2 other is on 2 different mobile sites, and are connected via mobile network(4g/3g)
The 1 plc connects with out any difficulty.
The 2 plc's that is connected via a mobile networks will not connect. They return with a timeout error.
I suspect that is because of how mobile networks work, that makes it, that i can not just add them to my "Authorized networks".
Is it just me and are the a way to connect to my MySQL server on gcloud?
Background:
I started a google cloud account yesterday to try it out. So this might just be a problem of me not understanding the service.

You can use the Google Cloud SQL proxy, which uses service account credentials to authenticate connections to your database.
You could also manually configure an SSL certificate and use that instead.

Related

QlikSense connection to localhost application using REST

Trying to establish a data connection using REST from QlikCloud account to a locally running application. I get an errror:
Connection to local resources is not allowed
The application running on my laptop is having a REST API enabled.
I was not able to use QlikSense Desktop so I had to login through the browser to QlikCloud.
I also tried giving the ipaddress of my laptop instead of localhost. It still throws as error:
Connection to http://<ip_address>:1000/v1/documents?uri=/csv/myFile.csv is not allowed
Should I be running my application only on a server? Any help is appreciated.
The data connections are "executed" in the context of the Qlik Engine. Which means that when specifying localhost the connection will try and load the data from the machine where the Engine is running. In Qlik Cloud case - this will be some machine in Qlik's cloud.
You can:
use QS Desktop (you've mentioned that this is not working for you)
host your service somewhere on the interned where the Engine can reach it
use some service (like ngrok) that can tunnel the local server to a public url which then access from Qlik

Able to connect, despite no external IP / networks in Authorize Network?

I'm learning Cloud SQL and configured IP connectivity for a Cloud SQL instance, using this article: Connecting mysql Client Using IP Addresses
However i'm a bit confused, even though no external network IP address listed in Authorize Networks Cloud SQL instance > AUTHORIZATION > Authorized networks (see screenshot)... I'm still able to connect to SQL instance and browse databases etc. I'm using both $mysql as well as $gcloud sql connect commands in local console / terminal (MacOS
fyi, if that helps, I had earlier whitelisted my IP but then deleted it from Authorized networks (could it be the deletion takes some time to reflect the change? I waited 30 min.!
Thanks for any clarificatin

Unable to access Google Cloud SQL (old) console

As of today, I can no longer access the Google Cloud SQL web console. For as long as we've been using Google Cloud SQL (about a year now) we've always been able to open the old google API console to get to the SQL prompt, but today the "noredirect" link stopped working and it always redirects to the new Google developers console which has no way to run SQL against the database. The URL we are using is like this:
https://code.google.com/apis/console/b/2/?noredirect&pli=1#project:999999999999:sql:instance:myprojectid:db01
Any ideas why this stopped working, and any alternatives for an SQL web interface? I would prefer to not have to setup a static IP and connect from a MySQL client.
Thanks.
This service has been turned down. There are several alternatives:
1) You can use the new "gcloud beta sql connect" command that is included in the Cloud SDK. Unless you machine supports IPv6 (unlikely) you will need to enable a IPv4 address for your instance.
2) You can connect using the normal mysql client. Again, unless you machine support IPv6 (unlikely) you will need to enable a IPv4 address for your instance. You will also need to authorize your IP address.
3) You can deploy PHPMyAdmin on Google App Engine which will provide you with a web console.

How to Access Database from server through a VPN

I am working on an iphone app in which i want to access database from server through a VPN
Edit as i search. connection To server through is VPN is difficult and i was not found any solid information about this SO now i divide my Question in to two parts and part 1 is important to do as compare to other
Question 1
i have a SQL server DATABASE and a live ip of this server and i want to establish connection and access database through iphone . mean i iphone app store, select data or perform any DDL or DML methods from it self?
e.g
when user givs its info iPhone apps saves it on SQL SERVER DATABASE
Question 2
how can i do this all or which mean of communication is best through VPN how can i do and how can i hit or live IP?
You need a setup with a VPN-Gateway, which your iPhone is connecting to and some infrastructure behind the VPN-Gateway: at minimum the server the database is running on. The VPN connection can be setup in the iPhone Settings (you need the IP of your VPN-Gateway, Account, Password...), this has to be done manually and can't be controlled by the App. Once the VPN is setup and activated you can access the database as you would do it with any other App.
Edit: Question 2: I'm not sure if VPN is the right choice here. Is your server publicly available or is it inside an intranet? If it's publicly available a SSL/TLS connection would be the better choice instead of a VPN.

Using VPN in objective C once user is connected to VPN with Anyconnect,F5 BIG-IP Edge

I am exploring the possibility of communicating with server that requires VPN connection outside of corporate network using iOS enabled device. I found out that I can connect to VPN using proprietary apps of Cisco, F5, Juniper etc. Assuming that user has successfully connected to VPN using these apps, can I directly communicate(call web service) from my iOS app? I know that Safari can directly communicate with server requiring VPN connection once user establish connection using one of apps I mentioned.
Thanks,
Jignesh
I'm sure that there could be unique circumstances that cause problems, but in my experience I have found that this works just fine. I have an app that interacts with SOAP services running on servers within our corporate intranet. Once I have established a VPN connection using network-specific clients (I've used both Cisco and Juniper clients) I am able to use NSURLConnection and other iOS API's to connect to those servers.