Hi. We are developeing some java utility using a few government provided web services (few simple https urls returning some json data). Everything works ok, but one customer uses proxy server. We would like to give him tested and working solution not any trials and errors.
But we don't use proxy server, so we tried to find some solution how to simulate it. We googled utility Fiddler (
https://www.telerik.com/fiddler) with this recommended setting
(
https://superuser.com/questions/180480/how-to-simulate-corporate-proxy-server-on-my-development-machine)
1. Download and run Fiddler proxy (it's free). It will automatically set itself as a system proxy in Windows on each run. Also click Rules -> Require Proxy Authentication in the top menu if you want to test authentication to the proxy (username and password are "1").
2. Open Windows Firewall, then Advanced settings -> Windows Firewall Properties. Block all outbound connections for all profiles you need (domain, private, public) and click OK.
3. Add new outbound firewall rule to allow all access for 8888 port (default Fiddler port) or "%LOCALAPPDATA%\Programs\Fiddler\Fiddler.exe" app.
We did everything listed, tried first chrome. It itself turned the proxy setting on, the address set to http=127.0.0.1:8888;https=127.0.0.1:8888
But connection ends with ERR_TUNNEL_CONNECTION_FAILED
We're not 100% sure how to setup the rule in point 3) Maybe is the problem here and not in Fiddler ?
We set this:
Protocol type TCP
Local port all
Remote port 8888
this gives ERR_TUNNEL_CONNECTION_FAILED
If we set only local, only remote or both 8888 , it still gives ERR_TUNNEL_CONNECTION_FAILED
I know this is not 100% java question, but we get to java right after solving this.
Maybe there's other utiliy emulating proxy.
Any suggestions? Thanks.