This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes localhost and machine name bound to jboss.bind.address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "localhost and machine name bound to jboss.bind.address" Watch "localhost and machine name bound to jboss.bind.address" New topic
Author

localhost and machine name bound to jboss.bind.address

Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
Hi guys,

Is there a way to bind both the localhost and the machine name to jboss.bind.address? Basically I want to be able to access the url http://localhost:8080 as well as http://<machine-name>:8080

Here's the extract from jboss-service.xml of jboss4.2.2GA

<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

Thanks
Preetham


"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

How about starting JBoss with -b 0.0.0.0 option. That way, you can access the system using localhost, machineName and even the IP address.


[My Blog] [JavaRanch Journal]
Preetham Chandrasekhar
Ranch Hand

Joined: Nov 05, 2003
Posts: 98
thanks Jai Kiran...that works!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: localhost and machine name bound to jboss.bind.address
 
Similar Threads
Configuration problem
tomcat startup problem
Not able to start with Tomcat
How Tomcat Works book - development question
Losing session attribute