Charles proxy stopped working - charles-proxy

I had Charles proxy properly set up on my Mac - it was intercepting https traffic from mobile apps which were running on both real iOS phone and real Android phone.
Next day I wanted to use it and all of the sudden it is not working, i.e. those apps reports now "no internet connection" and I don't see any traffic on Charles coming from iOS or Android (I can see the traffic coming from my Mac's web browser so it seems to be working "in general" but not with my mobile devices.
I've checked it the IP is ok and if all devices are still in the same network and it seems to be still properly configured.
Any clue what may be wrong or how to try to debug this problem?
(when Charles was working properly I was getting the popup over Charles window "confirmation dialog asking to allow network traffic from mobile device" which was enabling traffic; when it's not working I do not see it)
[EDIT] It suddenly started working just-like-that. I think it is my internal network hiccup.

I came across a very similar issue recently. To the fix the problem I had to add the IP address of my test device to the "Access Control Settings" screen in Charles.
Proxy → Access Control Settings → enter the IP address of your device → kill and reload the app
The issue wasn't very obvious. You have to look in the bottom left hand corner of Charles Proxy to realise there's even a problem!

Related

Can't log in on Unity: Sorry, this link is no longer valid

I am having a problem when trying to log in on Unity Hub and https://id.unity.com/, searching for a solution I try allowing Unity througth firewall and changing my network to private (it was already in private but I try changing it to public and then private again), none of this solutions worked for me. The only "solution" I found was connecting to my phone network, what is wrong with my home network? Here is a screenshot of the error message.
I hope you can help me, thank you.
I have exactly the same issue on my house network.
In all the machines that I connect I receive this error.
No matter if I connect using WIFI or Ethernet (Using cable).
No matter if I try to log in on a web browser or on the Unity Hub.
Always the same.
The solution that I found was to use the 4G internet of my Android device on my Laptop, creating a "Mobile Hotspot" (Wifi Point on your Android device) and connect your computer to that Wifi network:
(Disable the Wifi on you Android device, and enable Data Usage -> Mobile Data), make sure you purchased an internet packet for your Android device, or you have montly internet plan.
Another solution could be just to connect using another Wifi network, for example a network from a Shopping Mall.
The problem is something related to the network configuration, so the fastest solution is to use another network just to log in into your Unity account, and then use your network for the rest (Keep your session active as long as possible to avoid doing this again and again).

Connect to Live HTML Preview from another device on same network

I have downloaded and installed an extension to preview a webpage I'm working on inside the editor. It works fine, but I would like to also test the same HTML code on my mobile device as well. I have a normal home WiFi network. I was wondering if it is possible to somehow hook into the preview from another device besides the host computer. Is there a way to view the website from my phone on the same WiFi network, and access all of the website's served files, like index.html, /styles/.css, /scripts/.js, /images/*.jpg, etc?
Thank You!
very simple solution
turn on the live server on your pc
check the port where it's running
will look like 4400
check your LAN IP address will look like 192.172.123
Enter the address with the port number in this form (192.172.123:4400) on another device connected to the same router or device
Boom you can view changes as same you are using the same device
Sorry, I didn't realize that this functionality is already included in the wonderful extension that I originally downloaded - it's called Live Server by Ritwick Dey. On his GitHub repo, he outlines steps to remotely connect to the served website via another device on the same network (your phone for example). Tried it and it worked the first time!
https://github.com/ritwickdey/vscode-live-server/blob/master/docs/faqs.md

LAN web server for testing my websites on my phone?

I am a front end web developer.
I would like a web server on my local wifi network for testing my websites on my phone. I am aware that there are several options out there but witch one would be best for quick testing of multiple websites (also a GUI would be preferable)
Thanks
What you want to do is pretty complex. You have to create and configure a DNS server then you have to configure your phone to get this DNS, etc.
If your phone is an android the best solution is to use your USB Cable and put your phone in dev mode, then you can debug your site with chrome directly on your phone.
how to: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
For iPhone i don't know if is possible. But the common solution is to use the simulator.

hood.ie setting a fixed URL instead of network address

I've made a hood.ie app, where I will be using 2 devices (a laptop from where i do hoodie start) and an iPad.
At the moment, on the iPad i need to get the network address from the laptop from where the app actually sits to enter it in Safari on the iPad (this can also change depending on whats connected to the wifi network).
Is there a more convenient way to do this as the app has be started and logged into daily?
Thanks.
I'm afraid not, it's also not really part of Hoodie's scope. If you want to expose your local sever with less hassle, you could:
Give it a fixed IP address and just bookmark that on the ipad
Use a service like https://ngrok.com/ or http://localtunnel.me/ (especially the former) to have nicer or even fixed urls that tunnel through to your local server
Hope that helps!

Get rid of proxy popup in ios simulator

I'm behind a corporate firewall and all network traffic goes thru the main proxy. In my iOS simulator, I get proxy popups a few times each time I run my app. The thing is, my app doesn't make any network calls (yet), and doesn't import any network frameworks. In fact, I can reproduce this by making a new project in XCode using one of the standard templates and run it straight away; it'll still prompt for the proxy credentials every time.
In my OSX network settings, I've obviously set my proxy credentials in all the different protocols (HTTP, HTTPS, FTP, Socks, RTSP, Gopher). I found that I needed to put the domain and backslash before my username to allow web access in any OSX browsers etc...so given that I did that and then the OSX proxy prompts went away and I was allowed access, I would have thought that the iOS simulator would just inherit those settings...?
Any ideas?
One more bit which may be unrelated: we haven't yet figured out how to get access to the App Store on this Mac; despite supposedly getting past the proxy, any use of the App Store just results in timeouts and we can't even see the "home page". I'm wondering if somehow the iOS simulator is making similar network calls using some other protocol that is like the App Store...? (I would have thought App Store would have been HTTPS but I don't know).
Any thoughts appreciated.
If you put *.apple.com in your proxy passthrough list, the simulator will stop whining about it.
Like you, I can't get the Apple Store to work through our corporate proxy either. I've worked around it by using a wireless network that doesn't use a proxy when I have to use the App Store.
I've found plenty of other things in the OS that don't work through our proxy.
I had the same issue and found another way without touching the proxy settings!
I'm working on a Mac with OSX-El Capitan so maybe in other versions these steps might be slightly different:
Go to System Preferences
Go to Network
Choose your connection (Wireless/Ethernet/Thunderbolt-Ethernet)
Click on Advanced Options
Go to the tab Proxies
The two boxes Automatically detect proxy (for the internet connection on your mac) and Web-Proxy (HTTP)
Insert your login credentials at Web-Proxy (HTTP).
This reduced the occurence of the Proxy-PopUp greatly on all the 3 macs I work with. (At least it doesn't appear periodically anymore when I start my app from xcode)