blob: 89550436de342802f53627af4a0b215fede033ea [file] [log] [blame]
<div class="wiki-content maincontent"><p>TCP based transport protocols (including SSL) allow you to define the local address and local port for Socket to use when it's created.<br clear="none"> This can be useful for clients that reside on multi-homed machines or for clients operating in a DMZ, where only pre-defined ports can be used.</p><p>To specify the local address and local port, ActiveMQ supports the use of the path on the URI, e.g.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">ssl://localhost:5666/localhost:60606
</pre>
</div></div><p>&#160;</p><p>where the path following the forward slash "localhost:60606" defines the local address and local port</p></div>