外网访问:
在IP为192.3.8.29的机子里部署jboss应用,http://192.3.8.29:8188/是无法在别的机子里访问的。因为部署完后,默认只能本地访问(即:只有127.0.0.1/localhost能访问),如果想让其他人也可以访问你的网页,需要修改JBoss的配置文件,即修改standalone.xml,增加本机Web地址的内容。
修改jboss端口号在<socket-binding name="http" port="8188"/>里
打开jboss-as-7.1.1.Final\standalone\configuration\standalone.xml
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
将127.0.0.1 改为 192.3.8.29,重新启动JBoss,即可外部访问