solve it by:
1. File to change:
jboss-5.1.0.GA/server/allot/deploy/messaging/remoting-bisocket-service.xml
in the file change:
<attribute name="serverBindAddress">${jboss.bind.address}</attribute>
Change value to : ${java.rmi.server.hostname}
2. Reboot the 2 machines