I was going to refer you to the "ConfiguringMultipleJBossInstancesOnOneMachine" topic in the wiki, but the wiki appears to be broke right now. When it is back up you can find the answer there.
Its in :-
Hi, After 4 years I am having the same problem ;-)
I am using Jboss 5.1.0 and theres no jboss-service.xml in deploy\ejb3.deployer\META-INF\jboss-service.xml
The same XML is in server\default\conf ...but even there also 3873 does not exists.
I tried to find it in server\default\deployers\ejb3.deployer\META-INF
but , its not there also .... I need to find that port and change it , as I am using 2 instances on linux server ..and this port is already used by node1..
so node2 is not starting ....
For AS5, it's in JBOSS_HOME/server/< servername>/deploy/ejb3-connectors-jboss-beans.xml
Thanks and its running
You can also add this in $JBOSS_HOME/server/[your server]/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml
<property name="description">JBoss Remoting Connector</property>
This way this port is automatically changed with the other when using the ports-01 ports-02 etc... bindings. ejb3-connectors-jboss-beans.xml uses the bindings, but the connector port is not included in the default bindings, at least in 5.0.0.