blob: 19387cabc8672fede3b55ff3a74d2b04a3a90839 [file] [log] [blame] [view]
---
layout: default_md
title: How do I define a local address and local port for TCP or SSL
title-class: page-title-activemq5
type: activemq5
---
 [FAQ](faq) > [Configuration](configuration) > [How do I define a local address and local port for TCP or SSL](how-do-i-define-a-local-address-and-local-port-for-tcp-or-ssl)
TCP based transport protocols (including SSL) allow you to define the local address and local port for Socket to use when it's created.
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.
To specify the local address and local port, ActiveMQ supports the use of the path on the URI, e.g.
```
ssl://localhost:5666/localhost:60606
```
where the path following the forward slash "localhost:60606" defines the local address and local port