How to access Influx port 8086 from remote

Hi,

How to access Influxbd from external IP address?

Local access works.
curl -G http://localhost:8086/query -u user:password --data-urlencode “q=SHOW DATABASES”

{“results”:[{“statement_id”:0,“series”:[{“name”:“databases”,“columns”:[“name”],“values”:[[“_internal”],["…

But this doesn’t:
curl -G http://influx.server.IP:8086/query -u user:password --data-urlencode “q=SHOW DATABASES”

But i can access Grafana on http://influx.server.IP:3000

Influxdb runs in Google VM.

8086 port is OPEN

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp6 0 0 :::8086 :::* LISTEN

fixed it already.

For some reason the FW rule was not visible in iptables.

I added a rule with sudo ufw allow 8086 and success!
curl -G http:// influx.server.IP :8086/query -u user:password --data-urlencode “q=SHOW DATABASES”