I am trying to get a Charles Log from an android device, and it is not working. The android device's browser will not connect to the internet after I set up the Wifi with the Proxy. I have listed the steps I did to set up Charles Proxy on my computer and configuring the android device to use charles proxy.
I am totally grateful for any help, but I just want to point out a couple of things:
*I have the correct the Wifi network & IP address for the Android device proxy settings ( see Step 18 below).
*As far as I know I do not use a VPN or a Firewall on the android device. How can I double check this?
*I have tried the steps below with 2 versions of Charles Proxy.
charles Proxy: 4.2.7
charles Proxy: 3.12.3
I removed and reinstalled the program each time.
*Chrome and Firefox on the android device will not connect to the internet with the proxy set up.
See the list below for the step and Thank you so much!!!
System: MacOS 10.10.5 Android: 6.0.1
- Menu: Proxy: ticked Mac OS proxy
- Menu: Help > SSL proxying > Install Certificate
- In Keychain > found certificate > clicked Always Trust (entered password)
- In Charles Proxy, clicked Proxy menu
- Menu > Proxy > SSL Proxying settings
- Ticked Enable SSL Proxying
- Clicked Add
- Host * Port 443.
- Menu: Proxy > Proxy Settings
- Clicked Proxies Tab: Http Proxy Port: 8888
- Ticked: Enable Transparent HTTP proxying
- Clicked MacOSX tab
- Ticked: Enable Mac OS Proxy, Use HTTP proxy, Enable MacOS proxy at start up
- Clicked Mozilla Firefox tab: Enable Mozilla Firefox Proxy, Use HTTP proxy, Enable Mozilla Firefox proxy at startup.
- Menu: Proxy > Access Control settings
- Clicked add, set IP Range 0.0.0.0/0
- Ticked: Prompt to allow unauthorized connection.
- Menu > Help > Local IP address - Wrote this IP address down and used this number to set up android device.
On Android device:
- Connect Android to Mac with USB cable. Port USB 2.0
- Settings > Network & Internet > Wi-Fi
- long-tapped active wifi connection, selected: Modify network
- Expand the Advanced options, tapped at None below Proxy and selected Manual
- Entered IP address from step 18 in the Proxy hostname field .
- Entered 8888 into the Proxy portfield
- Clicked Save.
- Open Chrome
- type http://charlesproxy.com/getssl/ or short version chls.pro/ssl
- Get error message: “err_proxy_connection_failed” or "err_connection_timed_out" Please note: No dialog box appears on Charles Proxy on Mac about the Android device.
- As far as I know I do not use VPN and I do not use a Firewall on the android device. How can I check this?
To manually add the security certificate to the Android device: 30: On Mac desktop – Charles Proxy > Menu Help > SSL Proxying > Save Certificate 31. Saved certificate to desktop. 32. Copied certificate to android device / downloads folder (not on SD card) via USB cable.
On android device: 33. Found charles proxy certificate file, long clicked.
In dialog box: renamed certificate Charles Proxy Certificate
Clicked VPN & Apps
Clicked save.
NB: Here I am not asked to re-enter my device PIN
Open Chrome App. Get the error message “err_proxy_connection_failed” or "err_connection_timed_out"
Android Device: notification that a third party might be watching.
I check if the certificate is installed: Settings > Security > Trusted Credentials > User > the XYZ Charles Proxy security certificate is installed.
I have also done Steps 30 to 38 with the certificate with a crt and a pem suffix.
I have tried the following variations: *Setting up the Proxy on Android device without USB connection to mac *Setting up the Proxy on Android device while connected to mac via USB *Setting up the proxy on Android device before opening Charles Proxy and after.
I have no idea what to try next! Hope you can help and thank you for reading this far. :)