Skip to content

Proxy Settings

Daniel Odievich edited this page Oct 19, 2019 · 14 revisions

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

.NET Full Framework on Windows

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

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>  

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>

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>

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 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. 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