Port number control

When using MQIPT, it is possible to restrict the range of local port number that are used when making an outgoing connection.

Set the OutgoingPort property on the route to specify the initial local port number, and set MaxConnectionThreads to specify the number of ports to be used. For example, if you set OutgoingPort to 1600 and MaxConnectionThreads to 20, then the range of local port numbers for that route is 1600 - 1619.

It is the responsibility of the MQIPT administrator to make sure that there are no conflicts of port numbers between routes.

If OutgoingPort is not defined, a default value of 0 means a system-allocated port number is used for each connection.

When using HTTP, the number of outgoing ports is twice as many as when not using HTTP. In the previous example, if the route used HTTP, the range of numbers would be 1600 - 1639.

See Allocating port numbers for more information.


Multihomed systems

When using a multihomed system, we can specify which IP address an outgoing connection will bind to by using the LocalAddress property. Host names are not supported on this property.

Parent topic: Configure IBM MQ Internet Pass-Thru