Two Laptop Bag*
The moose likes JBoss/WildFly and the fly likes localhost and Ip address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "localhost and Ip address" Watch "localhost and Ip address" New topic
Author

localhost and Ip address

Forrest Xu
Ranch Hand

Joined: Nov 16, 2002
Posts: 92
Hi,
I have a question to ask. Thank you in advance.

I started a JBoss (jboss-4.2.0.GA) server in ubuntu linux. It works using

http://localhost:8080/jmx-console

But it does not work in

http://192.168.2.160:8080/jmx-console

Where 192.168.2.160 is IP address of my computer where the server is started.

What's the problem?

By the way, can I remove 8080 by changing something in configuration file?

Regards and thanks,
Forrest
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

I started a JBoss (jboss-4.2.0.GA)


This is the latest version of JBoss and there has been a change to the way JBoss binds its services. The README of this version mentions:

JBossAS now binds its services to localhost (127.0.0.1) *by default*, instead of binding to all available interfaces (0.0.0.0). This was primarily done for security reasons because of concerns of users going to production without having secured their servers properly. To enable remote access by binding JBoss services to a particular interface, simply run jboss with the -b option, but be aware you still need to secure you server properly.


If you want to access the server using the IP address, then you will have to start it as follows:



Ex:



Additionally, if you want the services to be bound like in the previous versions of JBoss, then just start your server using:



[My Blog] [JavaRanch Journal]
Forrest Xu
Ranch Hand

Joined: Nov 16, 2002
Posts: 92
Thanks, I solved the problem as you mentioned.

another problem is how we can remove 8080 in url?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

Originally posted by Forrest Xu:
another problem is how we can remove 8080 in url?


Hmmm... i havent tried that before, so dont have an answer right now for that.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

Originally posted by Forrest Xu:
another problem is how we can remove 8080 in url?


VirtualHosts might be what you are looking for. Once you configure the virtual hosts, you can access your application with URL like http://www.myapp.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: localhost and Ip address
 
Similar Threads
JBoss using web console
JBoss and Tomcat Error
problems with JNDI name lookup
JBoss & Tomcat integration - endless problem
jmx-console