-
1. Re: All services binding to 0.0.0.0:8080 or 0.0.0.0:xxx
rgjawanda Jan 6, 2007 11:43 AM (in response to rgjawanda)note:
here is what my NamingService comes up as
[NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory......
Note the bindAddress -
2. Re: All services binding to 0.0.0.0:8080 or 0.0.0.0:xxx
rgjawanda Jan 6, 2007 1:15 PM (in response to rgjawanda)i added the -Djboss.bind.address=myipaddress and it fixes the bindAddress problem.
It does most of the bindAddress as myipaddress (ie my real ip addres) but some of them as http://mail:8083
? All the others say http://myipaddress:port but not
RMI codebase using http://mail:8083
All others
http-192.161.xxxx:8082
Why? -
3. Re: All services binding to 0.0.0.0:8080 or 0.0.0.0:xxx
peterj Jan 7, 2007 2:53 PM (in response to rgjawanda)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. -
4. Re: All services binding to 0.0.0.0:8080 or 0.0.0.0:xxx
rgjawanda Jan 9, 2007 1:16 PM (in response to rgjawanda)Thanks for replying.
I now understand better. Thanks
Ron