I am running a servlet deployed on JBoss running on 8080.
I am able to access the servlet on my local machine using http://localhost:8080/myapp
But the moment I try to connect to the servlet using http://192.168.157.17:8080/myapp, i get network error.
Tried adding the IP map to the localhost by modifying the hosts file at WINDOWS/system32/drivers/etc , but no use.
Can anyone help ?
Thanks in advance,
I assume you are using JBoss 4.2. They changed the default security to bind to 127.0.0.1(localhost) and it used to be global 0.0.0.0. You can get this same behavior by starting JBoss with -b 0.0.0.0. If you look in the readme.html in your JBoss distribution there is a link with info on how to secure JBoss once you bind to 0.0.0.0.