Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004

    Unanswered: Remote Connect problem

    Hi All,

    I'm new Java and Mysql Programmer and have a big problem to remote connect Mysql Server by following Setting:

    1. Server Computer : Linux 9.0 with LAN IP : /
    2. Router Setting LAN IP MAP with True IP : /
    3. Server Installed : MySQL, Java SDK 1.4 and JRE 1.4 with Java-web Start JNLP

    Problem :
    1. We can access MySQL internal with Client in LAN IP
    2. Once i came home and remote connect by True IP the following message occur.

    My Connect Message -----------------------------------------------
    Connection c = DriverManager.getConnection(

    Error Message -----------------------------------------------------
    SQLException Status : SQLException: Unable to connect to any hosts due to exception: Connection refused: connect

    MESSAGE: Connection refused: connect

    STACKTRACE: Connection refused: connect
    at Method)
    at Source)
    at Source)
    at Source)
    at Source)
    at Source)
    at<init>(Unknown Source)
    at<init>(Unknown Source)
    at com.mysql.jdbc.StandardSocketFactory.connect(Stand
    at com.mysql.jdbc.MysqlIO.<init>(
    at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:1771)
    at com.mysql.jdbc.Connection.<init>( 40)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    SQLStatus : SQLState: 08S01
    Vendor Status : VendorError: 0
    Sanki Poon

  2. #2
    Join Date
    Apr 2004
    Are you sure the router is not blocking the connection from the WAN to the LAN?

    George Papadopoulos

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts