I can curl to a remote InfluxDB but get 'connection refused' from influx client


I have an Influx server running version 1.6.3 with IP address

I then have an Influx client running version 1.6.3 with IP address

From the client, I can use curl to ping the server.

[~]$ curl -sl -I
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: 233db6c2-5b9b-11e9-96b2-000000000000
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.6.3
X-Request-Id: 233db6c2-5b9b-11e9-96b2-000000000000
Date: Wed, 10 Apr 2019 14:15:48 GMT

If I try to use influx from the same client I get an error.

[~]$ influx -host
Failed to connect to Get dial tcp connect: connection refused
Please check your connection settings and ensure 'influxd' is running.

This doesn’t appear to be a user permission issue, since passing a query to CURL works:

[~]$ curl -XGET '' --data-urlencode 'q=SELECT "bar" FROM "FOOMES" LIMIT 10'
{"results":[{"statement_id":0,"series":[{"name":"FOOMES","columns":["time","bar"],"values" etc.


Hi welcome John ,

your curl contains port 8068 … and influx connects default to 8086 …

does the following work ?

influx -host -port 8068
1 Like


Ha! Yes, that did it. I would not have noticed that in a million years, thanks!

1 Like