I'm trying to connect to my db2 table but getting error:
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.socketE xception(SQLExceptionGenerator.java:579)
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Conne ction.java:251)
at COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Conne ction.java:200)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.j ava:215)
at java.sql.DriverManager.getConnection(DriverManager .java:512)
at java.sql.DriverManager.getConnection(DriverManager .java:171)
at LogOnPackage.DB2Conns.main(DB2Conns.java:24)

Somebody suggested the DB2 JDBC Applet Server has to run. It is running on the db2 server. What else should I check.

This is my class:
import java.sql.*;

class DB2Conns {
static {
try {
Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").ne wInstance();
} catch (Exception e) {
public static void main(String argv[]) {
try {
String server = ("");
String port = ("50000");
String url = "jdbc:db2:// "+server+":"+port+"/JAVATEST";

String userid = ("UId");
String password = ("pw");

Connection con;
con = DriverManager.getConnection(url, userid, password );

} catch( Exception e ) {