Private and public IP issues with Charles proxy tool | Community
Skip to main content
December 2, 2020
Question

Private and public IP issues with Charles proxy tool

  • December 2, 2020
  • 1 reply
  • 3003 views

Hi,

 

I have connected client mobile app from android virtual device to charles proxy tool, but client have whitelisted the IPs.

Due to it I was not able to login to the app, I have shared charles local IP address to client for whitelisting.

But client is stating that they can able to whitelist only public IP, as the Charles IP is private they said they can't do it.

Will I get any suggestion for this.

 

Thanks,

Mohanrao 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Brian_Johnson_
Level 8
December 2, 2020

@mohanr63926589 - Your computer is likely connected to a router at your home or place of business, and that router assigns your computer a local IP address. This might be something in the range of 192.168.1.x, or possibly 10.0.0.x, or something similar. This IP address is specific to your internal network (at home or work). There are likely thousands (millions? more?) of other devices around the world with the same internal IP address as you.

Your router, on the other hand, ultimately connects to the broader internet, so it requires an external IP address that is unique. No two connected devices on the broader internet should have the same IP address. For example, the external IP addresses for your home and work networks is guaranteed to be be different.

With that in mind, there is no use or benefit in trying to whitelist an internal IP address for external use.

On the specific topic of Charles Proxy and mapping a mobile device to pass data through your computer, what you need to do is set the local IP of your computer as the proxy in your mobile device's network settings. (Both devices must be on the same network.) The Charles Proxy website walks through this setup here for an iPhone, but the process is similar for most devices (Android...).

December 2, 2020

Thanks for your detailed reply.

I got your point! That I need to connect my Charles installed laptop and mobile device with the same IP address(My laptops local IP), but the data flow to Charles would start after I have connected my device with the IP address generated by Charles.

You can get it from Charles>>Help>>local IP address.

which is a private IP, can't whitelist by client.

Please suggest.

 

Thanks,

Mohanrao