I am using IConnect client APIs to connect to a remote informix database server. (Both remote and local machines are HP-UX)
When I want to connect a remote Informix database from a thread (other than the main thread), the connection fails and Informix driver shows a error as
"[Informix][Informix ODBC Driver][Informix]Attempt to connect to database server (nnnn) failed".
If I connect the same remote database from main thread, it is success.However, if I I try to connect a local database (on the same machine) from a non-main thread, it also succeeds.

Problem is only when I connect a remote database from a non-main thread.

I have IDS7.31 installed on the both the local and remote machines.

Any help is highly appreciated.