Charles proxy shows IP addresses instead of domain names - charles-proxy

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

after searching for a while I found this: https://stackoverflow.com/a/46054993/4231147
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)
Save access point changes
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

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.

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>

Related

Cannot connect Charles Proxy to see traffic on any mobile

First of, I can see on traffic coming through when I browse on my desktop.
I have set the IP in network settings along with the port but when I connect I do not get the do you want to connect this phone message from Charles.
I have:
deleted all certificates and tried to go to chls.pro/ssl but get no internet message and the certificate doesn't download.
tried ios and android both with the same result.
tried to manually add it to the access devices in Charles.
The only difference is from two weeks ago when I last did this successfully is the VPN I am on (I open the Charles before connecting to the VPN, to rule that out).
Any suggestions? I am going crazy!
There are various issues that can cause this issue: I collect here and you can verify each step to solve it: https://docs.proxyman.io/troubleshooting/my-ios-devices-couldnt-connect-to-proxyman-via-proxy
I would like to summarize:
Check if your Firewall is blocking all incoming traffic -> Turn it OFF
Stop all VPN app from your iOS device
Make sure your iOS devices and your macOS are in the same network.
Disclaimer: I create the Proxyman app, which is a modern version of Charles-Proxy. Hopefully it helps you resolve the problem.

Deploying with Visual Studio 2019 to Hololens 2

I am trying to deploy to my Hololens 2 and I'm trying to connect to it via wifi.
I am following the instructions here:
https://learn.microsoft.com/en-us/windows/mixed-reality/mrlearning-base-ch1
I also followed the instructions here for connecting via wifi:
https://learn.microsoft.com/en-us/windows/mixed-reality/using-visual-studio#enabling-developer-mode
I am using Master/Arm64/Remote Machine
I got the IP address for my Hololens 2 and put it in the Remote Machine Name under Project -> Properties -> Configuration Properties - > Debugging -> Remote Machine.
For authentication type, I am using "No Authentication".
The project builds successfully
Problem comes from when I try to deploy.
The error message I am getting is this:
DEP6957: Failed to connect to device '127.0.0.1' using Universal
Authentication. Please verify the correct remote authentication mode
is specified in the project debug settings. COMException - No
connection could be made because the target machine actively refused
it. (Exception from HRESULT: 0x8007274D) [0x8007274D]
I have confirmed that my machine is in fact turned on when I try to deploy.
Has anyone seen this before?
Do you have any suggestions?
My ip address, on my hololens, is not 127.0.0.1, why does it say that is my IP address? I put something completely different in Configuration Properties -> Debugging.
Make sure that you enter the IP address (machine name) in the active configuration (Master/ARM64 in your case). For the authentication type select the Universal (Unencrypted Protocol), as mentioned in the manual.
Check the IP of the HoloLens 2, which must be entered as the machine name, this can change over time.
You can find the IPv4 address under Settings -> Network&Internet -> Advanced options of the Wifi network you are connected to.
Also make sure that the PC from which you deploy the HoloLens 2 and the HoloLens 2 are in the same Wifi network.
I never figured out what caused this error, but I know how I fixed it.
Close out of Visual Studio.
Search for a '.suo' file.
Delete this file.
Open the solution back up.
Redeploy the program.
This did it for me.
Solution User Options file (.suo), this file stores user preference settings and is created automatically when Visual Studio saves a solution.

Can't access localhost on MacBook from iPhone Safari, shows loading bar then fails?

I have a nodejs server running on port 3000 and I'm trying to access that from my iPhone.
I have tried:
The Macs IP Address (found in "network")
The Macs "name" (computer-name.local:3000)
Changing the WLAN
Opening "Internet Sharing" in "Sharing" unter System preferences
Accessing the site through chrome
Tested another iPhone than mine, same result as you can see on the picture
Tested an XAMPP Server on port 80, same result as you can see on the picture
Checked firewall (it's deactivated)
You can see on the image that there is indeed a loading bar, it doesn't directly show "site not found" or anything. So what I am guessing is that I have to configure something more on my MacBook, but I can't find out what. I tried everything written in other posts about this. The final message I get(after like 20 seconds) is "Safari could not open the page because the server stopped responding".
Have you checked firewall settings? Perhaps you need to open the port or the server application in System & Preferences -> Security and privacy -> Firewall -> Firewall Options.

Capture Android Emulator traffic using Fiddler

I've been trying to capture the network traffic populated from the browser and an app hosted inside the Android emulator, using Fiddler.
I've been unsuccessful even after following the workarounds of adding proxy to the emulator (Settings - More - Cellular Networks - Access Point Names - adding the system IP and port).
You should enter this ip-address: 10.0.2.2 as a Proxy-address. You should use it cause of Android emulator haven't direct access to your local network and can't connect to local computer.
But Android Emulator has a virtual router, so you can connect to your computer by address 10.0.2.2. You can read more here
-OR-
You can use Visual Studio Android Emulator. There's using Hyper-V virtual network adapter that can connect directly to your local network
The point is you should switch air-plane mode on-off once after fill this settings in Cellular network setting / Access point Names with this settings:
Set your system IP in -> Proxy
Set fiddler port number (8888 is default) in -> Port
Clear Username and Password field.
Save and exit.
Turn-on airplane mode and then turn it off.
Now your data will capturing by Fiddler.
It just working on an old version of android.

Eclipse->Prefrences->Network connections

In eclipse network connection, i need to select 'Active Provider' as 'Native' and add some proxy entries. But i am unable to do so. There is nothing to add proxy entries and its not picking the entries from web browser.
Pls help.
Thanks
Eclipse's Network Connections is depends on your Local Area Network (LAN) Settings.
For Windows, go to Control Panel -> Internet Options -> Connections -> LAN settings and add address and port of your favourite proxy server, then restart your Eclipse.