java.sql.SQLException: Network error IOException: Connection timed out: connect

Stack Overflow | lakshman | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    can't connect to MSSQL database 2012

    Stack Overflow | 4 years ago | lakshman
    java.sql.SQLException: Network error IOException: Connection timed out: connect
  2. 0

    Help me create a jTDS connection string

    Stack Overflow | 7 years ago | Omu
    java.sql.SQLException: Network error IOException: Connection refused: connect
  3. 0

    conexión con base de datos

    Google Groups | 9 years ago | Zorba
    java.sql.SQLException: Network error IOException: Connection refused: connect Error Code: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Driver doesnt want to connect

    jtds | 1 decade ago | knowledgesearch
    java.sql.SQLException: Network error IOException: Connection refused: connect
  6. 0

    java - OpenFire connect to SQL Server Database: Network error IOException: Connection refused - Super User

    superuser.com | 11 months ago
    java.sql.SQLException: Network error IOException: Connection refused: connect

  1. ruifung 1 times, last 8 months ago
  2. treefolk 1 times, last 3 months ago
  3. rp 1 times, last 4 months ago
  4. musketyr 1 times, last 6 months ago
8 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out: connect

    at java.net.DualStackPlainSocketImpl.connect0()
  2. Java RT
    Method.invoke
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
    8. java.net.Socket.connect(Socket.java:579)
    9. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    11. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    12. java.lang.reflect.Method.invoke(Method.java:601)
    12 frames
  3. jTDS
    Driver.connect
    1. net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:307)
    2. net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:257)
    3. net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:311)
    4. net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
    5. net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
    5 frames
  4. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:579)
    2. java.sql.DriverManager.getConnection(DriverManager.java:221)
    2 frames
  5. Unknown
    Test.main
    1. DB.dbConnect(Test.java:28)
    2. Test.main(Test.java:12)
    2 frames