无法从同一网络中的另一台计算机通过 Eclipse 访问 JBoss EAP 中的 Web 应用程序 运行
A web application running in JBoss EAP through Eclipse cannot be accessed from another computer in the same network
我在我的机器(Computer1)中通过 Eclipse 在 JBoss EAP 中有一个 Web 应用程序 (JSF2) 运行ning。 Computer1 是一台 Windows7 机器。
我可以 运行 使用 Eclipse 内部浏览器的应用程序和 Chrome Computer1 中的应用程序。
但是,当我尝试从同一网络中的另一台计算机 (Computer2) 访问该应用程序时,我收到一条 ERR_CONNECTION_REFUSED 错误消息。
我使用 netstat 看到 Computer1 正在侦听端口 8080,而 Computer1 没有防火墙。
我可以从 Computer2 ping Computer1。
任何帮助都会很棒!
默认情况下 JBoss 只监听 local 接口。快速搜索显示您必须向配置添加接口,例如:
<interfaces>
...
<interface name="any">
<any-address/>
</interface>
</interfaces>
然后配置 socket-binding-group
以使用它:
<socket-binding-group name="standard-sockets" default-interface="any">
我在我的机器(Computer1)中通过 Eclipse 在 JBoss EAP 中有一个 Web 应用程序 (JSF2) 运行ning。 Computer1 是一台 Windows7 机器。 我可以 运行 使用 Eclipse 内部浏览器的应用程序和 Chrome Computer1 中的应用程序。 但是,当我尝试从同一网络中的另一台计算机 (Computer2) 访问该应用程序时,我收到一条 ERR_CONNECTION_REFUSED 错误消息。
我使用 netstat 看到 Computer1 正在侦听端口 8080,而 Computer1 没有防火墙。
我可以从 Computer2 ping Computer1。
任何帮助都会很棒!
默认情况下 JBoss 只监听 local 接口。快速搜索显示您必须向配置添加接口,例如:
<interfaces>
...
<interface name="any">
<any-address/>
</interface>
</interfaces>
然后配置 socket-binding-group
以使用它:
<socket-binding-group name="standard-sockets" default-interface="any">