By default, TurboActivate uses whatever proxies your users have set for their system. Where TurboActivate reads these proxy settings from differs between operating systems:
Windows: The proxy settings are read from Internet Explorer.
macOS: The proxy settings are read from the system internet settings.
Linux / BSD: The proxy settings are read from the environment variables http_proxy
or all_proxy
.
You can overwrite the default system proxy settings both in API and the TurboActivate Wizard. When using custom proxies within TurboActivate they must be in the form Proxy in the form: http://username:password@host:port/
Example 1 (just a host): http://127.0.0.1/
Example 2 (host and port): http://127.0.0.1:8080/
Example 3 (all 3): http://user:pass@127.0.0.1:8080/
Note: If the port is not specified, TurboActivate will default to using port 1080 for proxies.
To override the default system proxies within the TurboActivate API, simply call the TA_SetCustomProxy()
function while passing in the proxy string as a parameter. This sets the custom proxy in memory and all subsequent calls that go through the Internet will use that custom proxy until your process ends.
To clear a previously set custom proxy simply pass in a null
value (or NULL
, nil
, or Nothing
depending on your programming language).
To bypass the system proxies, and only try to directly connect to the LimeLM servers, pass in an empty string value.
This should go without saying, but if you're specifying a custom proxy you should call TA_SetCustomProxy()
before using any other function (especially ones that require internet connectivity, e.g. TA_IsGenuine()
, TA_Activate()
, etc.)
You can pass custom proxy settings to the TurboActivate Wizard using the commandline. For example:
TurboActivate.exe --proxy="http://username:password@host:port/"
TurboActivate, the TurboFloat library, and the TurboFloat Server all support NTLM proxies on Windows. To use NTLM proxies you must also specify the domain. For example:
http://DOMAIN\username:password@host:port/