Using the Emulator with a Proxy
If your emulator must access the Internet through a proxy server, you can use
the -http-proxy <proxy>
option when starting the emulator, to
set up the appropriate redirection. In this case, you specify proxy information
in <proxy>
in one of these formats:
https://<machineName>:<port>
or
https://<username>:<password>@<machineName>:<port>
The -http-proxy
option forces the emulator to use the specified
HTTP/HTTPS proxy for all outgoing TCP connections. Redirection for UDP is not
currently supported.
Alternatively, you can define the environment variable
http_proxy
to the value you want to use for
<proxy>
. In this case, you do not need to specify a value for
<proxy>
in the -http-proxy
command — the
emulator checks the value of the http_proxy
environment variable at
startup and uses its value automatically, if defined.
You can use the -verbose-proxy
option to diagnose proxy
connection problems.