Java – JBoss binding IP address
I need some help from someone who knows JBoss hostname binding I think the solution is simple, but it is complicated to explain
I am using JBoss (v4.2) to deploy the application and have trouble configuring the application
The application has two parts, a web site on port 8080 and a web service on port 8080 using soap API
My server is located behind the firewall and has an alias. Suppose it is called orange mycompany. com
My problem is that I can't connect the console to the web service The website is valid, but I see a connection rejection error connecting to the web service
I can control two things, the binding IP on Tomcat and the URL of the web service
If I start JBoss and bind to the local IP address:
./run.sh -b 10.1.2.3
I set the URL of the web service to the same IP address
url=http://10.1.2.3:8080/services
I can see the website on port 8080 from outside the firewall, but the console can't connect to web services From the server, orange itself, I can't call http://localhost:8080/ or http://10.1.2.3:8080 Or orange mycompany. COM: 8080 see the website
However, if I start JBoss and bind to 127.0 0.1:
./run.sh -b 127.0.0.1
I set the URL of the web service to localhost
url=http://localhost:8080/services
Now I can't see the website from outside the firewall But from the server itself, I can see the website browsing http://localhost:8080 , I can successfully connect to the web service That's good, but I need to visit the website from the outside
Anyone can suggest any combination setting, let me browse the website, and let the console call web services on localhost?
Solution
No problem.
Start JBoss binding to all IP addresses
./run.sh -b 0.0.0.0