I am using Android 4.3 on VirtualBox, for testing apps. However, I'm running the VM on my computer, which is behind a proxy (without DHCP), so I cannot connect to the Internet from the VM.
What I need to accomplish:
- Setup the Android machine to use a static IP (192.168.1.213/24, with gateway 192.168.1.1)
- Setup proxy access (proxy is on another server in the network 192.168.1.2 and has user/pass)
Can you please let me know how I can do this? More details on what I'm using:
- From http://code.google.com/p/android-x86/downloads/list , I used android-x86-4.3-20130725.iso
- In VirtualBox, under settings for machine, I've used Bridged Adapter and the default selection "Realtek PCIe GBE Family Controller"
- No other changes
Not very familiar with available commands in adb (I just know that you can access it with Alt-F1, and hide it with Alt-F7), so I would appreciate more in-detail instructions.
Thank you
Edit: I ran the following commands to setup static IP:
- su
- ifconfig eth0 192.168.1.213 netmask 255.255.255.0 up
- route add default gw 192.168.1.1 dev eth0
This solved requirement 1 (setting up static IP), and now I can ping other computers from my network, so I only need a way to setup a proxy with user/pass (requirement 2)
This article about Android x86: setting-up IP Address using command line may helpful to you.
Proxy setup