COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01

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

code using for connection
serverIp="192.168.0.1";
            port="50000";
            db_name = "ARBINDEX";
            sc_name = "NULLID";
            user_name = "DB2ADMIN";
            pass = "oracle123";

Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
            con = DriverManager.getConnection("jdbc:db2://"+this.serverIp+":"+this.port+"/"+this.db_name,this.user_name,this.pass);

LVL 6
MuhammadAdilAsked:
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.
0
Mayank SAssociate Director - Product EngineeringCommented:
Also check if the server has been firewalled and the port is no longer open.
0

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
hoomanvCommented:
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0401chong/

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
0
Mayank SAssociate Director - Product EngineeringCommented:
Any reason for the B grade?
0
DamithaCommented:
try with com.ibm.db2.jcc.DB2Driver driver. Its comes with db2jcc.jar
0
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
Java

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.