Discussion:
HOWTO: Install Android SDK and AVD Manager behind a Proxy/Firewall in Windows
Scaryant
2010-03-19 16:17:33 UTC
Permalink
I figure this is the best place for this to surface in a web search -
but apologies if it is not.

Problem Description:
If you're behind a proxy/firewall that requires a domain, username and
password for authentication then you will have a problem with the
final step in setting up your IDE environment.

This is because the SDK/AVD Install/Manager only has proxy settings
for the proxy server and port - it is not sophisticated to accept your
domain, username and password. Because of this you cannot authenticate
through the proxy and you will just get timeouts during the install.

(An alternative solution for *nix can be found here
http://sastriawan.blogspot.com/2009/10/workaround-on-installing-android-sdk-20.html)

Solution Description:
1. Download this NTLM Authorization Proxy Server for Windows (link at
bottom)
http://tredosoft.com/ntlm_proxy_server

2. Unzip and edit the setting in server.cfg - I have a MS Proxy Server
and changed the following settings to match my browser settings;
PARENT_PROXY: <ip address or server name>
PARENT_PROXY_PORT: <normally 8080>
NT_DOMAIN: <windows domain name>
USER: <windows username>
PASSWORD: <windows password>

3. Execute the NTLM Authorization Proxy Server. If you have a firewall
enabled (eg Windows Firewall) you will get a prompt to unblock the
port - do this. If you have another firewall you need to disable it
temporarily or allow access to the port 5865.

4. I first of all tested the settings in my browser, to do this I
changed the proxy settings under the network options. For the proxy
server I used 127.0.0.1 and the port is (by default) 5865. It
initially took a few seconds (~30 sec) to respond and load the
requested page.

5. Now run the "SDK Setup.exe" program in the SDK kit.

6. Go to "Settings" and enter the loop back address as the proxy
server "127.0.0.1"

7. Enter the port as 5865 and select/enable "Force HTTPs..."

8. You may need to restart for the changes to work, but first try just
selecting "Installed packages" and "Update All". If it doesn't kick
off the update/install just restart the SDK Setup and it should start
automatically after the reload.

Hope that helps someone, I found a few posts in regard to this so
thought this would help others in future.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Edel Custodio Frias
2012-07-20 13:39:57 UTC
Permalink
Cuando realice todos estos pasos y doy clic a "Reload" me muestra el cuadro
de dialogo de Login y Pass, en este caso, que hago?
Post by Scaryant
I figure this is the best place for this to surface in a web search -
but apologies if it is not.
If you're behind a proxy/firewall that requires a domain, username and
password for authentication then you will have a problem with the
final step in setting up your IDE environment.
This is because the SDK/AVD Install/Manager only has proxy settings
for the proxy server and port - it is not sophisticated to accept your
domain, username and password. Because of this you cannot authenticate
through the proxy and you will just get timeouts during the install.
(An alternative solution for *nix can be found here
http://sastriawan.blogspot.com/2009/10/workaround-on-installing-android-sdk-20.html
)
1. Download this NTLM Authorization Proxy Server for Windows (link at
bottom)
http://tredosoft.com/ntlm_proxy_server
2. Unzip and edit the setting in server.cfg - I have a MS Proxy Server
and changed the following settings to match my browser settings;
PARENT_PROXY: <ip address or server name>
PARENT_PROXY_PORT: <normally 8080>
NT_DOMAIN: <windows domain name>
USER: <windows username>
PASSWORD: <windows password>
3. Execute the NTLM Authorization Proxy Server. If you have a firewall
enabled (eg Windows Firewall) you will get a prompt to unblock the
port - do this. If you have another firewall you need to disable it
temporarily or allow access to the port 5865.
4. I first of all tested the settings in my browser, to do this I
changed the proxy settings under the network options. For the proxy
server I used 127.0.0.1 and the port is (by default) 5865. It
initially took a few seconds (~30 sec) to respond and load the
requested page.
5. Now run the "SDK Setup.exe" program in the SDK kit.
6. Go to "Settings" and enter the loop back address as the proxy
server "127.0.0.1"
7. Enter the port as 5865 and select/enable "Force HTTPs..."
8. You may need to restart for the changes to work, but first try just
selecting "Installed packages" and "Update All". If it doesn't kick
off the update/install just restart the SDK Setup and it should start
automatically after the reload.
Hope that helps someone, I found a few posts in regard to this so
thought this would help others in future.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Loading...