Java – JBoss application server: accessing deployed web applications from another machine

I have deployed my web application to JBoss standalone application server v7 1.1 upper

But for some reason, I can't access the application from other computers on the same network The server is running on port 18080

I have deployed the same application on the Tomcat server running on the same machine, and I can access it remotely on other machines Tomcat port number: 8080

To verify whether there is a problem with the port number, I just exchange the port number between Tomcat 18080 and JBoss to 8080. I can access the application from tomcat, but JBoss cannot Therefore, there is no problem with the port number

I've taken a look at the JBoss server standalone XML file and try to change the interface attribute of the socketbinding element to public, which is still useless

socket-binding name="http" interface="public" port="18080"

Can anyone tell me what changes need to be made to access these web applications deployed on JBoss for remote access?

Solution

Alternatively, you can use the JBoss startup script and its - B modifier to define the public interface IP binding For example:

Bind to specific IP:

./standalone.sh -b xxx.xxx.xxx.xxx

To bind to all IPS:

./standalone.sh -b 0.0.0.0

The default behavior is only bound to localhost (127.0.0.1)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>