iOS-SOCKS-Server icon indicating copy to clipboard operation
iOS-SOCKS-Server copied to clipboard

Suddenly stopped working

Open thejoltjoker opened this issue 1 year ago • 5 comments

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.

thejoltjoker avatar Feb 14 '24 15:02 thejoltjoker

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...

nneonneo avatar Feb 15 '24 01:02 nneonneo

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 avatar Feb 24 '24 20:02 thejoltjoker

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.

thejoltjoker avatar Feb 24 '24 20:02 thejoltjoker

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,

salmanfarisvp avatar Apr 08 '24 07:04 salmanfarisvp

@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.

nneonneo avatar Apr 08 '24 17:04 nneonneo