Send end
At the sending end of the TCP/IP connection, there are a number of settings to configure.
The connection name (CONNAME) field in the channel definition must be set to either the host name (for example MVSHUR1) or the TCP network address of the target. The TCP network address can be in IPv4 dotted decimal form (for example 127.0.0.1) or IPv6 hexadecimal form (for example 2001:DB8:0:0:0:0:0:0). If the connection name is a host name, a TCP name server is required to convert the host name into a TCP host address. (This requirement is a function of TCP, not IBM MQ .)
On the initiating end of a connection (sender, requester, and server channel types) it is possible to provide an optional port number for the connection, for example:
- Connection name
- 192.0.2.0(1555)
In this case the initiating end attempts to connect to a receiving program listening on port 1555. Note: The default port number of 1414 is used if an optional port number is not specified.
The channel initiator can use any TCP/IP stack which is active and available. By default, the channel initiator binds its outbound channels to the default IP address for the TCP/IP stack named in the TCPNAME queue manager attribute. To connect through a different stack, we need to specify either the host name or IP address of the stack in the LOCLADDR attribute of the channel.
Parent topic: Defining a TCP connection on z/OS