470,594 Members | 1,407 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

remote connection


I'm getting the following exception and I'm not really sure why I'm
getting it.
***Exception: Unable to connect to any hosts due to exception:
java.net.ConnectException: Connection timed out: connect**** The
default mysql port 3306 has been opened by our network administator
and clotho is the firewall behind which our server resides. the
following is my java-mysql code.

public static Connection connect(){


String url =
// String url ="jdbc:mysql:///stat_ddippss";
con = DriverManager.getConnection(url, "user", "test");
catch(Exception e){
System.err.println("Exception: " + e.getMessage());
return con;
public static void loadDriver(){
catch (Exception e){

Jul 19 '05 #1
0 2176

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Mitya Mitriev | last post: by
1 post views Thread by Chris | last post: by
4 posts views Thread by chris | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.