Proxy Server Settings#

If you want to connect to the Internet through a proxy server, you must configure the proxy server in the code that runs the Amplify SDK cloud service.

Note

You do not need to read this page if you are not using a proxy server to connect to the Internet.

Installing the Amplify SDK#

You will need to specify a proxy when using the pip command.

$ python3 -m pip install --proxy http://user:password@xxx.xxx.xxx.xxx:xxxx -U amplify

Running the solver from the Amplify SDK#

If your solver is deployed as a cloud service, you must set up a proxy for the solver client.

Note

Solvers provided as a cloud service are those with the ☁️ Cloud tag in the list of solvers on this page. Solvers with the πŸ’» Local tag do not require Internet access and, therefore, do not require proxy settings.

Specify the proxy in the proxy keyword argument when building the solver client. The following example uses FixstarsClient as the solver client, but the same applies to other solver clients.

from amplify import FixstarsClient

client = FixstarsClient(proxy="http://user:password@xxx.xxx.xxx.xxx:xxxx")

You can also specify the proxy at a later time.

from amplify import FixstarsClient

client = FixstarsClient()
client.proxy = "http://user:password@xxx.xxx.xxx.xxx:xxxx"