TCP/IP default port

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

We can change this by:

  • Adding the port number in brackets as the last part of the ConnectionName:

    • On Windows:
      SET  MQSERVER=ChannelName/TransportType/ConnectionName(PortNumber)
      
    • On UNIX and Linux :
      export  MQSERVER='ChannelName/TransportType/ConnectionName(PortNumber)'
      

  • Change 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 Use the TCP/IP listener on UNIX and Linux.

Parent topic: MQSERVER