【问题标题】:Connecting Orion Context Broker from another machine从另一台机器连接 Orion Context Broker
【发布时间】:2015-03-25 11:23:42
【问题描述】:

我无法从另一台机器连接到 ContextBroker,即使是同一 LAN 中的机器。

通过ssh访问没有任何问题

ssh geezar@192.168.1.115

然后

curl localhost:1026/statistics

终端显示统计信息,好吧

<orion>
  <xmlRequests>3</xmlRequests>
  <jsonRequests>1</jsonRequests>
  <updates>1</updates>
  <versionRequests>1</versionRequests>
  <statisticsRequests>2</statisticsRequests>
  <uptime_in_secs>84973</uptime_in_secs>
  <measuring_interval_in_secs>84973</measuring_interval_in_secs>
</orion>

但是当我尝试不使用 ssh 连接时...

curl 192.168.1.115:1026/statistics
curl: (7) Failed to connect to 192.168.1.115 port 1026: No route to host

甚至,我在路由器配置上将端口1026路由到那台机器(192.168.1.115),并尝试从我的公共IP访问,结果相同,无法连接

我想我遗漏了一些东西,但是.. 它是什么?

【问题讨论】:

    标签: fiware-orion


    【解决方案1】:

    这个问题最可能的原因是:

    • 主机中的某些东西(例如防火墙或安全组)阻止了传入连接
    • 客户端中的某些东西(例如防火墙)阻止了传出连接
    • 还有其他一些网络问题导致了连接问题。

    编辑: 在 GNU/Linux 系统中,iptables 通常用作防火墙。它可以被禁用,通常运行iptables -F

    【讨论】:

    • 就是这样!需要在防火墙上打开端口
    猜你喜欢
    • 1970-01-01
    • 2016-03-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多