resolving port conflicts (in JBoss)

I had this stupid problem when copying a JBoss configuration from one machine to another, that the TCP/IP ports which are needed appear to be in use.

My original idea was that a running instance of JBoss ( or even, though I doubted that) another program would be hanging around.

Running the command (as this was on a linux machine)
netstat -nlp

allowed me to rule out that option. So it had to be something else.

After some more thinking, it dawned on me. Since JBoss 4.2, the default option is to bind all network stuff to the loopback address (, usually referred to as “localhost”) only. So I had updated the startup script to include ‘–host “”‘. Changing that to ‘–host “”‘ did the trick and fixed the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *

question razz sad evil exclaim smile redface biggrin surprised eek confused cool lol mad twisted rolleyes wink idea arrow neutral cry mrgreen