Influxdb 与XDB的远程连接被拒绝

Influxdb 与XDB的远程连接被拒绝,influxdb,portforwarding,Influxdb,Portforwarding,我有一个运行在Xubuntu机器上的XD服务器,我想通过互联网从另一台(Ubuntu)计算机上进行查询(因此,客户端和服务器位于不同的LAN中)。 我在路由器上的XDB和端口8086上设置了身份验证,但我无法访问服务器 输入: curl -G http://xx.xxx.xx.xxx:8086/query -u admin:admin --data-urlencode "q=SHOW DATABASES" (xx.xxx.xx.xxx is the server public ip addres

我有一个运行在Xubuntu机器上的XD服务器,我想通过互联网从另一台(Ubuntu)计算机上进行查询(因此,客户端和服务器位于不同的LAN中)。 我在路由器上的XDB和端口8086上设置了身份验证,但我无法访问服务器

输入

curl -G http://xx.xxx.xx.xxx:8086/query -u admin:admin --data-urlencode "q=SHOW DATABASES"
(xx.xxx.xx.xxx is the server public ip address)
curl: (7) Failed to connect to xx.xxx.xx.xxx port 8086: Connection refused
{
  "results":[{
      "statement_id":0,
      "series":[{
          "name":"databases",
          "columns":["name"],
          "values":[["_internal"],["test"]]
      }]
  }]
}
输出

curl -G http://xx.xxx.xx.xxx:8086/query -u admin:admin --data-urlencode "q=SHOW DATABASES"
(xx.xxx.xx.xxx is the server public ip address)
curl: (7) Failed to connect to xx.xxx.xx.xxx port 8086: Connection refused
{
  "results":[{
      "statement_id":0,
      "series":[{
          "name":"databases",
          "columns":["name"],
          "values":[["_internal"],["test"]]
      }]
  }]
}
如果在带有
localhost
而不是
xx.xxx.xx.xxx
的服务器上运行相同的curl查询,则返回正确的结果

输出

curl -G http://xx.xxx.xx.xxx:8086/query -u admin:admin --data-urlencode "q=SHOW DATABASES"
(xx.xxx.xx.xxx is the server public ip address)
curl: (7) Failed to connect to xx.xxx.xx.xxx port 8086: Connection refused
{
  "results":[{
      "statement_id":0,
      "series":[{
          "name":"databases",
          "columns":["name"],
          "values":[["_internal"],["test"]]
      }]
  }]
}
我做错了什么