I don't know if you already solved it, but the trick is to add
Server=<yourDb2connectServer:port>
in your connection string.
If you use the DB2ConnectionStringBuilder object, you can set the property "Server" with that value.
#Db2#Db2forLUW#Support#SupportMigration