[jboss-user] [Installation, Configuration & Deployment] - Re: All services binding to 0.0.0.0:8080 or 0.0.0.0:xxx

PeterJ do-not-reply at jboss.com
Sun Jan 7 14:53:53 EST 2007


As you already found out, by default, when an application binds to a port, it binds to address 0.0.0.0, which means "accept input from all IP addresses handled by the NICs on this machine".  Thus is you set up your NIC to handle multiple IP addresses, or you have multiple NICs, you (or JBoss in this case) can receive requests on any of the addresses.

You also found that you can ask JBoss to bind to a specific address.  By the way, you could have also simply run it as follows:

./run.sh -b mail

This causes JBoss to bind to that particular address.  Note that when you do this, you will not be able to access any JBoss application from a browser using http://localhost:nnnn, because you did not bind to localhost (127.0.0.1).

Finally, are you asking why some of the log output shows the host name (mail) and others show the IP address (192.161.xxx.xxx)? They are both the same, some code just chooses to display one and other code chooses to display the other. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998737#3998737

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998737



More information about the jboss-user mailing list