There is a guide on how to define local host and port for Socket. http://activemq.apache.org/how-do-i-define-a-local-address-and-local-port-for-tcp-or-ssl.html
This looks little strange together with TcpTransportFactory.createTransport(location,wireformat) method that is parsing the connection string. Anyway, I expected this to finally work but still nothing. Now when there is a localAddress TcpTransport.connect() tries to bind socket to port instead of opening connection. This causes JVM_BIND address already in used. To me it looks like this can't be done. I would appreciate any help with this 'unusual' local setup. -- View this message in context: http://activemq.2283324.n4.nabble.com/Random-port-listening-on-0-0-0-0-for-tcp-transport-tp4726399p4729073.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.