Unable to access JBoss server from other machines
- By Viral Patel on December 3, 2008
- J2EE
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
./run.sh -b 0.0.0.0
and for Windows, use
run.bat -b 0.0.0.0
This will put the JBoss server online and your application can be accessed from other machines.
Get our Articles via Email. Enter your email address.


