[Windows]

Changing the SPX default socket

By default, for SPX, IBM® MQ assumes that the channel will be connected to socket 5E86. If required, you can change the default value.

About this task

You can change the port number by using either of the following options:
  • By using the MQSERVER environment variable.

    For SPX connections, specify the ConnectionName and socket in the form network.node(socket). If the IBM MQ client and server are on the same network, the network need not be specified. If you are using the default socket, the socket need not be specified.

  • By changing the SPX stanza of the mqclient.ini file.Changing the qm.ini file.

Procedure

  • To change the port number for an SPX connection by using the MQSERVER environment variable, specify the ConnectionName and socket in the form network.node(socket) as shown in the following example:
    
    SET  MQSERVER=ChannelName/TransportType/ConnectionName(SocketNumber)
    
    Note: If the IBM MQ client and server are on the same network, you do not need to specify the network. If you are using the default socket, you do not need to specify the socket.
  • To change the port number by using the qm.ini file, add the port number to the protocol name, for example:
    
    SPX:
    socket=5E87