Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suddenly stopped working #25

Open
thejoltjoker opened this issue Feb 14, 2024 · 5 comments
Open

Suddenly stopped working #25

thejoltjoker opened this issue Feb 14, 2024 · 5 comments

Comments

@thejoltjoker
Copy link

I've been using this for the past month with no problems, but suddenly yesterday it just started spitting out errors.

I've been using personal hotspot on my iPhone 13 Pro and connecting to it using a MacBook Pro M1 2021.

I tried using it with an ad-hoc network on the MacBook and it worked for a little while before giving me the same results.

I'd love to help develop a solution but I'm not quite sure where to start.

Error:
Assuming proxy will be accessed over hotspot (bridge100) at 172.20.10.1
Will connect to IPv4 servers over interface pdp_ip0 at 10.157.45.147
PAC URL: http://172.20.10.1:8088/wpad.dat
SOCKS Address: 172.20.10.1:9876
HTTP Proxy Address: 172.20.10.1:9877

Direction Traffic (Mbps)
In 0.00
Out 0.00

Connections: 0
Total In: 0.00 MB
Total Out: 0.00 MB
Total: 0.00 MB

Errors: 19
Last 5 log messages:
172.20.10.5:64556: code 502, message Unable to connect to host ('detectportal.firefox.com', 80): Host ('detectportal.firefox.com', 80) could not be resolved
172.20.10.5:64557: code 502, message Unable to connect to host ('ssl.gstatic.com', 443): Host ('ssl.gstatic.com', 443) could not be resolved
172.20.10.5:64558: code 502, message Unable to connect to host ('detectportal.firefox.com', 80): Host ('detectportal.firefox.com', 80) could not be resolved
172.20.10.5:64559: code 502, message Unable to connect to host ('calendar.google.com', 443): Host ('calendar.google.com', 443) could not be resolved
172.20.10.5:64560: code 502, message Unable to connect to host ('ssl.gstatic.com', 443): Host ('ssl.gstatic.com', 443) could not be resolved
Shutting down.

@nneonneo
Copy link
Owner

Interesting. Does it work if you access an IP address directly, such as https://1.1.1.1 or https://8.8.8.8? It might be the case that the DNS servers aren't reachable for some reason...

@thejoltjoker
Copy link
Author

I get this error in Firefox when trying to access those ip addresses directly:

Error response

Error code: 502

Message: Unable to connect to host ('8.8.8.8', 80): [Errno 49] error while attempting to bind on address ('10.156.33.219', 0): can't assign requested address.

Error code explanation: HTTPStatus.BAD_GATEWAY - Invalid responses from another server/proxy.

@thejoltjoker
Copy link
Author

thejoltjoker commented Feb 24, 2024

Yesterday it randomly worked with the hotspot again but now when I tried it's back to not working.
One thing I noticed though is that I get network error in the browser on my phone as well when I get the errors in Pythonista.
Could it be that the provider notices I have hotspot enabled and disables internet access somehow? It doesn't explain why it's inconsistent though.

EDIT:
I tried to replicate my settings from when it worked over hotspot yesterday. I had just used the ad-hoc method and therefore set my ip-address manually. It seems to work fine over hotspot as long as I don't use DHCP. I also need to set a DNS in network settings.

@salmanfarisvp
Copy link

Hi @thejoltjoker , How do we enable the ad-hoc network in MAC, I use MAC OC 14.2.1 (23C71) and I can't find the information at all.

And can you share the steps to set IP and use DNS. Thanks in advance,

@nneonneo
Copy link
Owner

nneonneo commented Apr 8, 2024

@thejoltjoker hmm, I wonder if maybe your cellular connection's IP address changed? Is 10.156.33.219 your hotspot address (which probably wouldn't work) or your cellular connection's IP address?

You can run the lib/ifaddrs.py script directly to dump out all the interfaces and their IP addresses - paste that output and it can help with the debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants