nneonneo / iOS-SOCKS-Server

iOS HTTP/SOCKS proxy server for fake-tethering
268 stars 33 forks source link

connect error [Errno 60] Operation timed out #7

Closed SocksHelp closed 9 months ago

SocksHelp commented 3 years ago

I get timed out for all remote.connect in handle_connect.

connect error [Errno 60] Operation timed out

Does Apple still allow Pythonista to use socket?

iPad with data plan is connected to a WiFi router.

iPhone is connected to WiFi router and automatic proxy to wpad.dat.

Is the iPad trying to use the WiFi for Internet? remote.bind binds to CONNECT_HOST 10.x.x.x address.

SocksHelp commented 3 years ago

I commented remote.bind in handle_connect and http://1.1.1.1 loaded, but I couldn’t load Google.

SocksHelp commented 3 years ago

I commented ssock.bind in handle_udp and Google loaded.

nneonneo commented 3 years ago

It sounds like there's a problem with autodetecting your cellular network vs. the WiFi network, which is used to ensure that packets are always routed correctly by the proxy. I'm always interested in improving this autodetection logic. One cause might be that more than one network has been identified as "cellular"; another possibility is that the cellular network is named something I'm not expecting. This hasn't been tested on as wide a variety of hardware as I'd like :)

If you're willing to help provide some information on your iPad and network setup, you can follow these directions:

After

for iface in interfaces:

add

print(iface)

(indented to the same level as the if not on the next line), then run the program and submit the full program output. If you're not comfortable posting your IP addresses on a public forum, you may email the log to <my github username>@gmail.com instead.

nneonneo commented 9 months ago

No activity in >2 years, closing.