Recently, I was running one of the application on JBoss server. Now I was able to access it using http://localhost:8080/myapp. But I was not able to access the application if I try to use my machine name or IP address instead of localhost in JBoss server. I am using JBoss 4.2.3 version. I searched the internet and found this solution. JBoss version 4.2.0.GA always bound to the any address “0.0.0.0”.This lead many people put their unprotected content on the internet or on their local LAN. Hence in the newer version of JBoss you have to explicitly choose to do so. For *nix environment
and for Windows, useCode language: HTML, XML (xml)./run.sh -b 0.0.0.0
This will put the JBoss server online and your application can be accessed from other machines.Code language: HTML, XML (xml)run.bat -b 0.0.0.0
I have follow the same procedure but its not working with IP address.
if we provide localhost its working
same here!
machine name works, IP does not