views:

1339

answers:

4

Hi, I just deployed a web application on JBOSS 4.2. It can be accessed locally only (http://localhost:8080/myApp). I cant access it from remote computer by typing its domain: (www.hostname.com:8080/myApp). I added Port 8080 as Exception in Windows Firewall. Note that the host (www.hostname.com) is reachable from remote computers via IIS on port 80.

Thanks, Rod

+7  A: 

JBoss listens on localhost only by default. To make it listen on the hostname also, start it with the -b flag:

run.bat -b 0.0.0.0

this will make it listen on every available address on that machine. To limit to a single address, replace 0.0.0.0 with your IP address.

skaffman
Thanks you(!) it works.
Rod
A: 

Hello, Even if I start it with the option -b 0.0.0.0 I can't access using http://192.168.0.50:8080/ (my ip adress) but I can access using http: //localhost:8080/ Please help!

taichimaro
Hi,Edit file context.xml (Add a valve).Open ${Tomcat_HOME}/conf/context.xmlAdd a valve in following format:<Valve className=”org.apache.catalina.valves.RemoteAddrValve”allow=”192.168.*.*” deny=”"/>
Rod
do not hijack other questions please
Woot4Moo
A: 

It's working now with the -b 0.0.0.0 option :) thnx a lot

taichimaro
A: 

I keep reading about all these problems with open sourced software like JBOSS. If these are constantly arising from personal use I cant imagine what they would do to a business. Glad i chose to get the remote control software for mine from proxy.

natalie voyles