ruby - Connection refused when using imap.rb to connect to imap.google.com -


i'm trying connect gmail account (via ruby-gmail gem, gmail gem, gmail_xoauth gem on oauth 2.0, each method uses imap.rb) , getting:

c:/ruby21-x64/lib/ruby/2.1.0/net/imap.rb:1045:in `initialize': no connection made because target machine actively refused it. - connect(2) "imap.gmail.com" port 993 (errno::econnrefused)

on gmail account have:

  1. ensured can accessed through web login
  2. ensured it's activated
  3. enabled imap
  4. allowed access insecure apps

in connection have:

  1. ensured made on ssl
  2. ensured uses correct login details , tokens applicable
  3. tried ports 993 , 465

what else try? how rule out firewall being issue, without having control on it?

.. (errno::econnrefused)

... how rule out firewall being issue, without having control on it?

it firewall. error message says connection service got actively refused. since working me doubt google refusing service must firewall in between.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -