The imqs23vn says you are linking the program for connection with server libraries and hence the queue manager must be on the same machine. If the queue manager were remote, you would link with the imqc23vn library.In your application, where do you specify the name of the queue manager to which you wish to connect? Can you post the source?