无法从远程计算机访问JBoss AS 7 [英] Can't access JBoss AS 7 from remote machine
问题描述
我正在端口8080上运行JBoss AS7.我可以从本地计算机(http://localhost:8080
)访问它.但是我无法从同一网络上的另一台计算机访问它,例如http://192.168.1.104:8080
不起作用.我已在本地计算机上禁用Windows防火墙.实际上,如果我在本地计算机上的端口8080上启动Tomacat服务器,则可以从远程计算机轻松访问它.因此,导致问题的原因与JBoss服务器有关.关于如何解决此问题的任何想法?
I am running JBoss AS 7 on port 8080. I am able to access it from my local machine (http://localhost:8080
). However I am not able to access it from another machine on the same network, e.g. http://192.168.1.104:8080
does not work. I have disabled the Windows firewall on the local machine. In fact, if I start a Tomacat server on the local machine at port 8080 it is easily accessible from a remote machine. So it is something about the JBoss server that is causing the problem. Any idea on how to fix this?
谢谢.
推荐答案
使用-Djboss.bind.address=192.168.1.104
选项启动服务器
OR
在您的standalone.xml中添加服务器IP地址
add the server IP address in your standalone.xml
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:192.168.1.104}"/>
</interface>
</interfaces>
如果要绑定到所有IP地址,则可以使用0.0.0.0而不是192.168.1.104.
You can use 0.0.0.0 instead of 192.168.1.104 if you want to bind to all IP addresses.
这篇关于无法从远程计算机访问JBoss AS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!