Skip to content

Proxy Settings

Daniel Odievich edited this page Jul 30, 2020 · 14 revisions

If your Controller is behind some sort of proxy, you may need to configure those settings.

How you do so differs between type of .NET Framework and OS.

.NET Full Framework on Windows

Proxy settings are stored in net472\AppDynamics.Dexter.exe.config.

Use Default Proxy

Default setting is to use Windows system defaults (Internet Explorer\Settings\Connections):

    <system.net>  
        <defaultProxy enabled="true" useDefaultCredentials="true">
            <!--
            This proxy setting is for using whatever is in Internet Explorer
            -->
            <proxy usesystemdefault="true" />
        </defaultProxy>
    </system.net>  

Use Fiddler Proxy

If you want to run DEXTER through Fiddler locally, you can uncomment this:

    <system.net>  
        <defaultProxy enabled="true" useDefaultCredentials="true">
            <!--
            This proxy setting is for local Fiddler debugging
            -->
            <proxy proxyaddress="http://127.0.0.1:8888" />
        </defaultProxy>
    </system.net>

Use Proxy with Address

If you want to run DEXTER through real proxy you can uncomment this and edit your proxy settings:

    <system.net>  
        <defaultProxy enabled="true" useDefaultCredentials="true">
            <!--
            This proxy is for the authenticated proxy on your network
            -->
            <proxy proxyaddress="http://youruser:yourpassword@your.proxy.url.com:12345" />
        </defaultProxy>
    </system.net>

Use Proxy with Configuration Script

If you want to run DEXTER through proxy configured by configuration script, use this:

    <system.net>  
        <defaultProxy enabled="true" useDefaultCredentials="true">
            <!--
            This proxy is for the proxy autoconfigured by script 
            Make sure to comment out all other proxy settings if you use this one
            -->
            <proxy scriptLocation="http://your.fqdn.com/yourscript.pac" />
        </defaultProxy>
    </system.net>

.NET Core Framework on Windows

Set "http_proxy" and "https_proxy" environment variables before application startup.

.NET Core Framework on Mac or Linux

Regretfully, "Use system proxy configuration on macOS" https://github.com/dotnet/corefx/issues/26593 is not fixed as of 8/31/2018 03/18/2019 10/19/2019. This means that you can not set system proxy and have dotnet runtime respect it.

Meanwhile, the workaround is to do this https://stackoverflow.com/questions/49653986/dotnet-core-httpclient-doesnt-respect-proxy-settings-on-mac (links to https://docs.cloudfoundry.org/cf-cli/http-proxy.html) - essentially set "http_proxy" and "https_proxy" environment variables before application startup.

Clone this wiki locally