28

Charles for me shows IP addresses instead of domain names. Has anyone else seen this problem. See the attached screenshot.

Charles screenshot

pgiitu
  • 1,671
  • 1
  • 15
  • 23
  • Also seeing this. Did you ever find a solution? In my case it happens when I first install/use Charles on a machine, then after some time it will begin displaying the domain names. This also happens on co-workers machines. – DalvikDroid Sep 14 '16 at 20:26
  • 2
    I am experiencing this issue when using Charles with the Android emulator. (at the time of writing, Charles v4.1.4 and Android emulator v26.1.3) – Sean Beach Aug 25 '17 at 00:06
  • 2
    I'm seeing this too when using Android emulator. – jack Aug 25 '17 at 22:46
  • did you resolve this issue? because i am having the exact same issue here. It used to be able to show the hostname with https. But with latest android sdk emulator, it shows ip address for HTTPS and hostname for HTTP URL. – user756829 Sep 24 '17 at 12:08
  • 1
    Possible duplicate of [Charles proxy SSL connections won't show hostnames, only ips](https://stackoverflow.com/questions/33724755/charles-proxy-ssl-connections-wont-show-hostnames-only-ips) – Simon Jul 30 '18 at 13:52
  • Just need to follow this and cold boot the emulator again https://stackoverflow.com/a/52765004 – Michael Nov 24 '21 at 16:40

3 Answers3

18

after searching for a while I found this: https://stackoverflow.com/a/46054993/4231147

  1. Setting -> Network & Internet -> Mobile network -> Access point names -> Click on the access point and set Proxy and Port properties to your charles local address (You can find it on Charles -> Help -> Local IP Address)
  2. Save access point changes

  3. On some versions you need to disable the airplane mode on and off to make the access point proxy effective

The menu flow is relevant for Android 8.0. on other versions, there might be a different name for some of the menu screens

Sarabadu
  • 587
  • 2
  • 18
gutte
  • 1,373
  • 2
  • 19
  • 31
4

For Android Emulator, adding to "gutte's " answer - if this issue still persists: it can be resolved by turning off the Wi-fi on the emulator and using Mobile Data only.

Prateek T
  • 41
  • 1
0

Cellular

Edit access point -> <ip>:<port> -> Save -> Airplane mode on/off

Wi-Fi

Edit -> <ip>:<port> -> Save

Download and save certificate

chls.pro/ssl
//Install a certificate -> CA certificate -> Install anyway

From Android N add a configuration to your app

//manifest
<applicationandroid:networkSecurityConfig="@xml/network_security_config">

//res/xml/network_security_config.xml
<network-security-config> 
  <debug-overrides> 
    <trust-anchors> 
      <!-- Trust user added CAs while debuggable only -->
      <certificates src="user" /> 
    </trust-anchors> 
  </debug-overrides> 
</network-security-config>
yoAlex5
  • 29,217
  • 8
  • 193
  • 205