java.net.ConnectException: Connection timed out: connect

Stack Overflow | user2680083 | 3 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0

    JCIFS - connection breaks

    Stack Overflow | 3 years ago | user2680083
    java.net.ConnectException: Connection timed out: connect
  2. 0

    [cas-user] CAS 4.1.7 and SPNEGO

    Google Groups | 8 months ago | Colin Wilkinson
    java.net.ConnectException: Connection refused
  3. 0
    samebug tip
    Your firewall blocks the connection, disable it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.
  6. 0
    samebug tip
    start Appium server

  1. osvzs 1 times, last 3 days ago
  2. Pilleo 1 times, last 4 days ago
  3. batwalrus76 2 times, last 6 days ago
  4. Dunmer 1 times, last 7 days ago
  5. johnxfly 5 times, last 2 weeks ago
59 more registered users
36 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.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(Unknown Source)
    3. java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    4. java.net.PlainSocketImpl.connect(Unknown Source)
    5. java.net.SocksSocketImpl.connect(Unknown Source)
    6. java.net.Socket.connect(Unknown Source)
    6 frames
  3. jCIFS
    Transport.run
    1. jcifs.smb.SmbTransport.ssn139(SmbTransport.java:196)
    2. jcifs.smb.SmbTransport.negotiate(SmbTransport.java:249)
    3. jcifs.smb.SmbTransport.doConnect(SmbTransport.java:322)
    4. jcifs.util.transport.Transport.run(Transport.java:241)
    4 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame
  5. jCIFS
    Transport.run
    1. jcifs.util.transport.Transport.run(Transport.java:258)
    1 frame
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame
  7. jCIFS
    SmbFileOutputStream.<init>
    1. jcifs.util.transport.Transport.connect(Transport.java:154)
    2. jcifs.smb.SmbTransport.connect(SmbTransport.java:307)
    3. jcifs.smb.SmbTree.treeConnect(SmbTree.java:156)
    4. jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
    5. jcifs.smb.SmbFile.connect(SmbFile.java:954)
    6. jcifs.smb.SmbFile.connect0(SmbFile.java:880)
    7. jcifs.smb.SmbFile.open0(SmbFile.java:972)
    8. jcifs.smb.SmbFile.open(SmbFile.java:1006)
    9. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
    10. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
    11. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
    11 frames
  8. path.unc
    TestUNC.main
    1. path.unc.TestUNC.main(TestUNC.java:79)
    1 frame
  9. jCIFS
    SmbFileOutputStream.<init>
    1. jcifs.smb.SmbTransport.connect(SmbTransport.java:309)
    2. jcifs.smb.SmbTree.treeConnect(SmbTree.java:156)
    3. jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
    4. jcifs.smb.SmbFile.connect(SmbFile.java:954)
    5. jcifs.smb.SmbFile.connect0(SmbFile.java:880)
    6. jcifs.smb.SmbFile.open0(SmbFile.java:972)
    7. jcifs.smb.SmbFile.open(SmbFile.java:1006)
    8. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
    9. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
    10. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
    10 frames
  10. path.unc
    TestUNC.main
    1. path.unc.TestUNC.main(TestUNC.java:79)
    1 frame