JBoss url accessible only from localhost.
We are migrating some of our applications to JBoss from WAS. The migration went successful. The developers were accessing the page using localhost url, during the development time. Today when we tried to access the url from outside the machine using the IP address or server host name, the pages were not coming, even if we are trying to access the page from the same server. However anytime we access the page with localhost as the host name it was coming without any problems, but not for any other IP or hostname.
I did a search and a page in JBoss Wiki helped to resolve the issue. http://www.jboss.org/community/docs/DOC-10179 . For people who don’t have the patience to read the wiki page and find out how to solve it, just follow the below steps.
While starting the server pass the IP address using the -b option. For eg: if you want to access the page using IP address, start the servers using the following command.
run.bat -b 192.168.66.1
Where 192.168.66.1 is your IP address or if you want it to be for all the IPs instead of one, use
run.bat -b 0.0.0.0