Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 232443 - Remote Error. Reason: ProxyHTTP: proxy error: Tunnel or SSL Forbidden
Remote Error. Reason: ProxyHTTP: proxy error: Tunnel or ...
Product: php
Classification: Unclassified
Component: FTP Support
All All
: P3 with 1 vote (vote)
: 7.4
Assigned To: Tomas Mysik
Depends on:
  Show dependency treegraph
Reported: 2013-07-09 12:29 UTC by terje7601
Modified: 2015-05-13 08:55 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT

screen grab of the failure (40.73 KB, image/png)
2014-08-14 01:27 UTC, DeveloperChris
redacted IDE log file (40.35 KB, text/plain)
2014-08-14 01:29 UTC, DeveloperChris
proxy settings (31.60 KB, image/png)
2014-08-14 01:35 UTC, DeveloperChris
sftp settings (43.51 KB, image/png)
2014-08-14 01:53 UTC, DeveloperChris

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2013-07-09 12:29:12 UTC
I have a PHP Project with a "Remote Web Site" Run Configuration. Under "Advanced Proxy Options" (Tools -> Options -> Manual Proxy Settings -> More...), I have configured a HTTP proxy and under "No Proxy Hosts" added:, dev, *,
where "dev" is the Host Name of the Remote Connection I'm using in the Run Configuration ( is its ip address & is its FQDN).

Now when I right-click "Source Files" & choose "Synchronize..." I get the following error:

Remote Error
Cannot connect to server dev.
Reason: ProxyHTTP: proxy error: Tunnel or SSL Forbidden

When I choose "No Proxy" (under Tools -> Options), I don't get the error & synchronizing works as expected.

So it seems to me that the "No Proxy Hosts" setting is not respected.

This bug seems similar to bug 207994, but that one was fixed in 7.3.1.
Comment 1 Tomas Mysik 2013-07-09 13:00:18 UTC
Could you please try it with the dev version of NetBeans [1] (use the ZIP file)? It should work there I hope (but please use the latest version, I have fixed it yesterday AFAIR).

Comment 2 terje7601 2013-07-09 14:32:58 UTC
No sorry, it doesn't work yet with the latest version ( What else can I do to help? There isn't anything in the log (messages.log) about it.
Comment 3 Tomas Mysik 2013-07-09 15:12:57 UTC
I will have a look at it. Thanks.
Comment 4 Tomas Mysik 2013-07-11 08:43:09 UTC
Should be fixed now, please verify.

Comment 5 terje7601 2013-07-11 14:57:59 UTC
I verified & it is fixed now, thanks.
Comment 6 Quality Engineering 2013-07-12 02:32:42 UTC
Integrated into 'main-silver', will be available in build *201307112300* on (upload may still be in progress)

User: Tomas Mysik <>
Log: #232443 - Remote Error. Reason: ProxyHTTP: proxy error: Tunnel or SSL Forbidden
Comment 7 Tomas Mysik 2013-07-12 04:39:33 UTC
Thanks for verification.
Comment 8 DeveloperChris 2014-08-13 01:47:32 UTC
This bug is still occurring in NetBeans IDE 8.0 (Build 201403101706)

Like above I have an sftp connection configured to a remote server.

If I configure a http proxy I get the connection forbidden message

If I configure no proxy everything works as expected.

I don't know why the http proxy effects an non http ssh connection.
Comment 9 Tomas Mysik 2014-08-13 08:42:19 UTC
@DeveloperChris: Please, do not reopen issues without the IDE log file. Thanks.
Comment 10 Tomas Mysik 2014-08-13 08:43:07 UTC
(In reply to Tomas Mysik from comment #9)
> @DeveloperChris: Please, do not reopen issues without the IDE log file.
> Thanks.

(And provide also exact steps to reproduce, thanks.)
Comment 11 DeveloperChris 2014-08-14 01:27:27 UTC
Created attachment 148690 [details]
screen grab of the failure

screen grab of the failure
Comment 12 DeveloperChris 2014-08-14 01:29:04 UTC
Created attachment 148691 [details]
redacted IDE log file

redacted IDE log file
Comment 13 DeveloperChris 2014-08-14 01:35:44 UTC
Created attachment 148692 [details]
proxy settings

This is the proxy setting during failure. simply changing it to no proxy makes it work as expected
Comment 14 DeveloperChris 2014-08-14 01:52:28 UTC
I would have included extra info if it didn't quite match the original posters bug. I have added more now.

To reproduce the issue enable the http proxy setting. right click a file and select upload.

To fix the problem disable the proxy settings right click the same file and upload

the next image shows my sftp settings and the result of clicking the test button.

Clearly the http proxy settings are being used for some reason during the upload process.

If I add the IP address of the remote server to my ignore list in the http proxy settings everything works as expected.

HTTP proxy should not be used for sftp connections.
Comment 15 DeveloperChris 2014-08-14 01:53:19 UTC
Created attachment 148693 [details]
sftp settings

sftp settings with test button clicked
Comment 16 ogj 2014-12-11 07:57:39 UTC
I am also struggling with the "No proxy hosts" in Netbeans 8.0.2. 
I have a manual proxy setup, and a list of hosts that should not be proxied (tried with wildcards, with and without FQDN, makes no difference).

I try to connect to an internal (Informix) database server with the database explorer. The message on the message log is:

INFO [org.netbeans.modules.db.explorer.action.ConnectAction] Malformed reply from SOCKS server
        at com.informix.asf.Connection.openSocket(
Caused: com.informix.asf.IfxASFException: Attempt to connect to database server (prod1_tst) failed.
        at com.informix.util.IfxErrMsg.getLocIfxASFException(
        at com.informix.asf.Connection.openSocket(
        at com.informix.asf.Connection.<init>(
        at com.informix.jdbc.IfxSqliConnect.<init>(
Caused: java.sql.SQLException
        at com.informix.jdbc.IfxSqliConnect.<init>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at com.informix.jdbc.IfxDriver.connect(
        at org.netbeans.modules.db.explorer.DbDriverManager.getConnection(
        at org.netbeans.modules.db.explorer.DatabaseConnection.doConnect(
        at org.netbeans.modules.db.explorer.DatabaseConnection.access$200(
[catch] at org.netbeans.modules.db.explorer.DatabaseConnection$
        at org.openide.util.RequestProcessor$
        at org.openide.util.RequestProcessor$
Comment 17 Tomas Mysik 2014-12-11 08:12:59 UTC
(In reply to ogj from comment #16)
> org.netbeans.modules.db.explorer.DbDriverManager.
> getConnection(

@ogj: Not related to PHP support, feel free to submit a new issue against Databases.

Comment 18 Tomas Mysik 2015-05-13 08:54:54 UTC
(In reply to DeveloperChris from comment #14)
> HTTP proxy should not be used for sftp connections.

Why? If you think that SFTP should not use HTPP ptoxy ever, then why com.jcraft.jsch.ProxyHTTP class exists?

Marking back as VERIFIED, please submit a new specific issue but I do not see any issue here, it works as expected - if proxy is set, it is used; if not then no proxy is used.

Comment 19 Tomas Mysik 2015-05-13 08:55:19 UTC
Returning back the correct status.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo