Featured Posts

Integrating GlassFish Application server with Apache... A typical production topology for GlassFish will be a front ending GlassFish with Apache for serving the static files. To integrate GlassFish Application Server with Apache web server follow the below...

Readmore

Some Java, JEE and WebSphere stuffs Rss

JBoss url accessible only from localhost

Posted by Albin Joseph | Posted in JBoss | Posted on 19-02-2009

1

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 4.75 out of 5)
2,094 views

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

  • Share/Bookmark

Read More

Comments (1)

How to change locahost to IP address in jboss server

Write a comment