permaculture playing cards*
The moose likes JBoss/WildFly and the fly likes Basic Jboss (5.1) set up - port 8080 not accessible from outside Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Basic Jboss (5.1) set up - port 8080 not accessible from outside" Watch "Basic Jboss (5.1) set up - port 8080 not accessible from outside" New topic
Author

Basic Jboss (5.1) set up - port 8080 not accessible from outside

Michael Helwig
Greenhorn

Joined: Aug 12, 2010
Posts: 2
Hi,

I have (as I guess) a rather basic problem with setting up JBoss 5.1 on a virtual server running Debian 5.0. JBoss is up and running but not accessible from outside of localhost. I can access a deployed application via lynx from the ssh of the server (http://localhost:8080/sample/), but not from outside. The port is closed.
"nmap localhost" results in:


But running nmap with the name of the server results in:


Thats all, other ports are closed. The following is the JBoss-entry for "ps ax":


There is no firewall configured, at least no iptable-rules.

Probably there is some basic configuration issue either in my network settings regarding the server (but I can think of none) or in jboss itself. When Installing JBoss I basically followed the "unzip and run" style tutorials, so there was no kind of configuration file manipulated. It runs with the default configuration, only the hostname for the http-invoker (tomcat) in jboss-service.xml was set. Maybe there is some other configuration file I have to adapt?

If this problem was already discussed in this forum I would be glad if somewone would point me to the corresponding thread.

Thanks for any suggestions on this problem!

Michael H.

Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You need to set the -b flag

e.g.

will give access to all IP-adr. and host nams


will only give access to the IP-adr. 123.234.456.123 - or to the host name/domain www.abbdf.com


Regards, Rene Larsen
Dropbox Invite
Michael Helwig
Greenhorn

Joined: Aug 12, 2010
Posts: 2
Wow thanks! That was trivial.
In fact, you mentioned this solution already here: http://www.coderanch.com/t/503154/JBoss/jboss-GA-work-localhost-but
Seems that I have simply searched for the wrong keywords.

Greetings,

Michael H.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Glad I could help
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Basic Jboss (5.1) set up - port 8080 not accessible from outside
 
Similar Threads
Unable to start JBoss 5
Using ssh pub/pri key implement port22
admin-console hidden behind apache http proxy
Help with Tomcat Install -- Startup OK but MGR page not loading
JBoss is not showing the welcome page