【问题标题】:Undertow server networking over wifiUndertow 服务器通过 wifi 联网
【发布时间】:2015-03-08 11:09:55
【问题描述】:

我有两到三个系统,比如说系统 A、B、C,它们连接到三个系统中任何一个上的无线热点

在系统 A 上,我正在运行 undertow 服务器,我可以在浏览器或应用程序中通过“localhost:8080”访问系统 A。我希望系统 B、C 也能够使用特定 IP 地址访问服务,不一定是“localhost:8080”。我的意思是我希望系统 B 和 C 上的互联网浏览器或应用程序能够访问系统 A 上的 undertow 服务器提供的相同服务。

【问题讨论】:

    标签: networking server wildfly-8 undertow


    【解决方案1】:

    好的,我通过监听无线设备的 IP 地址解决了这个问题。我的意思不是监听 localhost:8080 o 127.0.0.1:8080,而是监听为其他设备连接的无线热点提供服务的设备的 IP 地址。例如,如果系统 B 为无线提供服务,并且它的 IP 地址是 192.168.43.128 那么 undertow 服务器应该监听 192.168.43.128:8080 .addHttpListener(8080, "192.168.43.128") 。然后系统 A、B、C 连接到系统 B 的无线服务将可以访问使用 192.168.43.128:8080 的 undertow 服务器服务的资源

    【讨论】:

      猜你喜欢
      • 2013-08-18
      • 2017-03-26
      • 2016-05-11
      • 2016-05-14
      • 2011-04-10
      • 2012-05-28
      • 1970-01-01
      • 2017-03-04
      • 1970-01-01
      相关资源
      最近更新 更多