LocalAddress (MQCHAR48)
This field specifies the local TCP/IP address defined for the channel for outbound communications.
[ip-addr][(low-port[,high-port])]
where square brackets ([ ]) denote optional information, ip-addr
is specified in IPv4 dotted decimal, IPv6 hexadecimal, or alphanumeric form, and low-port
and high-port
are port numbers enclosed in parentheses. All are optional.
A specific IP address, port, or port range for outbound communications is useful in recovery scenarios where a channel is restarted on a different TCP/IP stack.
LocalAddress
is similar in form to ConnectionName
, but must not be confused with it. LocalAddress
specifies the characteristics of the local communications, whereas ConnectionName
specifies how to reach a remote queue manager.
This field is relevant only for channels with a TransportType
of MQXPT_TCP, and a ChannelType
of MQCHT_SENDER, MQCHT_SERVER, MQCHT_REQUESTER, MQCHT_CLNTCONN, MQCHT_CLUSSDR, or MQCHT_CLUSRCVR.
The length of this field is given by MQ_LOCAL_ADDRESS_LENGTH. This field is not present if Version
is less than MQCD_VERSION_7.