Note that there are some explanatory texts on larger screens.

plurals
  1. POAccess Gmail behind Firewall Java
    primarykey
    data
    text
    <p>I have a problem with access the gmail from my working area. This is my <strong><a href="http://paste.ubuntu.com/6375181/" rel="nofollow">code</a></strong>. It works in my home when network settings are default. The main problem is, in the working area there is more security on computers and network like firewalls etc.. </p> <p>I have to find a solution for run this script behind the firewall. Closing the firewall is not a permanent solution.</p> <p>Also I added the error message to the below. Any help is appreciated.</p> <pre><code> `com.sun.mail.util.MailConnectException: Couldn't connect to host, port: imap.gmail.com, 993; timeout -1; nested exception is: java.net.ConnectException: Connection timed out: connect at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:672) at javax.mail.Service.connect(Service.java:345) at javax.mail.Service.connect(Service.java:226) at unreadmails.MailReader.&lt;init&gt;(MailReader.java:23) at unreadmails.MailReader.main(MailReader.java:12) Caused by: java.net.ConnectException: Connection timed out: connect at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:297) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:229) at com.sun.mail.iap.Protocol.&lt;init&gt;(Protocol.java:116) at com.sun.mail.imap.protocol.IMAPProtocol.&lt;init&gt;(IMAPProtocol.java:115) at com.sun.mail.imap.IMAPStore.newIMAPProtocol(IMAPStore.java:689) at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:638) ... 4 more` </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload