I have this way to set the port in java for example :
public MQConn(String Hostname, String QManager, String Channel, String QLocal, int LocalOptions, String QRemote, int RemoteOptions) throws MQException {
super();
if (qMgr == null) {
//variables used for connection
hostname = Hostname...