TCP/IP default port

By default, for TCP/IP, IBM® MQ assumes that the channel will be connected to port 1414.

You can change this by:
  • Adding the port number in brackets as the last part of the ConnectionName:
    • For Windows:
      
      SET  MQSERVER=ChannelName/TransportType/ConnectionName(PortNumber)
      
    • For UNIX and Linux® systems:
      
      export  MQSERVER='ChannelName/TransportType/ConnectionName(PortNumber)'
      
  • Changing the mqclient.ini file by adding the port number to the protocol name, for example:
    
    TCP:
    port=2001
    
  • Adding IBM MQ to the services file as described in Using the TCP/IP listener.