Permission denied - connect(2) when trying to establish a web connection
<p>This issue is getting me crazy, especially as everything was working before.</p>

<p>Every time I try to establish a web connection, I end up with a Permission denied - connect(2) error, for example trying to launch bundler:</p>

<pre><code>Errno::EACCES: Permission denied - connect(2) for "bundler.rubygems.org" port 443
  C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize'
</code></pre>

<p>Edit: to be clear the issue is not related to bundler, I get the same error message for the following code:</p>

<pre><code>require 'net/http'
Net::HTTP.get('google.com', '/index.html')
</code></pre>

<p>gives me:</p>

<pre><code>C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/net/http.rb:879:in `initialize': Permission denied - connect(2) for "food2fork.com" port 80 (Errno::EACCES)
</code></pre>

<p>Environment</p>

<pre><code>    Bundler   1.11.2
    Rubygems  2.4.5.1
    Ruby      2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
    GEM_HOME  C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0
    GEM_PATH  C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0;C:/Users/user_name/.gem/ruby/2.2.0
    Git       2.7.2.windows.1
</code></pre>