I need help in solving the below error that pops out of .NET code when trying to connect DB2 server.
I have installed following nuget packages from manager into my .NET solution.
IBM.Data.DB.Provider version 11.1.3030.4
IBM.Data.DB2 version 10.0.5.5
after that i have following simple code in .NET:
string connectionstr = "Server =test.com:6000; Database = TEST; UID = test; PWD = test;";
DB2Connection obj = new DB2Connection();
DB2Connection connect = new DB2Connection(connectionstr);
connect.Open();
I get the following error.
ERROR [08001] [IBM] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API being used: "SOCKETS". Location where the error was detected: "xx.xx.xx.xx". Communication function detecting the error: "connect". Protocol specific error code(s): "10061", "", "". SQLSTATE=08001
Is it something to do with firewall setting? etc any help would be greatly appreciated. I was trying telnet with the remote db2 server on their port but was not successful.