com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: host, 25; timeout -1; nested exception is: java.net.UnknownHostException: host

howtodoinjava.com | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Java Send Email Example with Gmail SMTP Server - HowToDoInJava

    howtodoinjava.com | 6 months ago
    com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: host, 25; timeout -1; nested exception is: java.net.UnknownHostException: host
  2. 0

    How to send email in java using gmail smtp server - HowToDoInJava

    howtodoinjava.com | 1 year ago
    java.net.UnknownHostException: host
  3. 0

    Unknown Host Exception while authentciating to JIRA server

    Stack Overflow | 5 months ago | Shivam Jari
    com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: project.atlassian.net
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    bnd can no longer build offline

    GitHub | 4 years ago | fhuberts
    java.net.UnknownHostException: github.com
  6. 0

    issues with offline build

    GitHub | 6 years ago | fhuberts
    java.net.UnknownHostException: raw.github.com

  1. batwalrus76 10 times, last 3 days ago
  2. davidvanlaatum 2 times, last 7 months ago
  3. tvrmsmith 1 times, last 9 months ago
  4. aldrinleal 1 times, last 12 months ago
  5. Hronom 1 times, last 3 months ago
9 more registered users
42 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.UnknownHostException

    host

    at java.net.AbstractPlainSocketImpl.connect()
  2. Java RT
    Socket.connect
    1. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:158)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:154)
    3. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:380)
    4. java.net.Socket.connect(Socket.java:569)
    4 frames
  3. Java JSSE
    BaseSSLSocketImpl.connect
    1. sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:569)
    2. sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
    2 frames
  4. JavaMail API (compat)
    SMTPTransport.openServer
    1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:301)
    2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:208)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1950)
    3 frames