[IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01

i want to connect with remote DB2 and have following error [IBM][JDBC Driver] CLI0616E  Error opening socket. SQLSTATE=08S01

code using for connection
            db_name = "ARBINDEX";
            sc_name = "NULLID";
            user_name = "DB2ADMIN";
            pass = "oracle123";

            con = DriverManager.getConnection("jdbc:db2://"+this.serverIp+":"+this.port+"/"+this.db_name,this.user_name,this.pass);

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Are you sure with the port address???

check if it gets listed if you use netstat -an command in the command line.

or check if your port address is 6789.

else if every thing seems correct try connecting to the sample database provided by IBM itself.

Thank You.
Mayank SAssociate Director - Product EngineeringCommented:
Also check if the server has been firewalled and the port is no longer open.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

according to this site

1) You may need to start the DB2 JDBC Applet Server using db2jstrt <port number>
2) You may have specified a wrong port number, or an incorrect hostname/IP Address
Mayank SAssociate Director - Product EngineeringCommented:
Any reason for the B grade?
try with driver. Its comes with db2jcc.jar
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.