nneonneo / iOS-SOCKS-Server

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

Not working for Mac OS 14 #12

Closed dan2889 closed 1 year ago

dan2889 commented 1 year ago

Hi there I’ve tried to get this working on my os Mac but having issues, wanted to see if you could help, thanks :)

nneonneo commented 1 year ago

Thanks for your comment! I'll need some more details to help, although I'll caution that I'm still rocking macOS 12 so I may not be able to fully debug the issue.

Poxios commented 1 year ago

@dan2889 Are you using the native proxy settings in mac os? If so, some apps may be able to use the network without going through the proxy.

To solve this, you can use proxifier or tun2socks that forces all traffic to pass through a proxy.

hellodaniel commented 1 year ago

@dan2889 This issue needs better definition. I've been using on macOS 14 Sonoma for at least 4 months without issue. The only obvious thing I can think of is that some browsers, notably Firefox, may use their own proxy settings.

Abestren commented 1 year ago

Hello people. I'm not much familiar with any of these but I made it work. However, it works only if I keep the script running on Pythonista app with my iphone's screen unlocked. If I switch to another app or lock my iphone's screen, after a few seconds, it stops working. Why is so?

I tried both tethering and shared wifi (without an internet connection now, hence the reason I'm doing this). I tried the proxy URL, the SOCKS, and others that extra settings (ipv4, dns, router). I use the latest versions of both iOS and macOS right now.

nneonneo commented 1 year ago

@Abestren this is an iOS limitation: applications cannot run in the background outside of a limited number of exceptions, such as navigation (background location) or playing music. As far as I understand it, apps require special entitlements to run in the background, but Pythonista doesn't have these entitlements so scripts cannot run while in the background. (If you have any clever ideas to work around this limitation, I'm all ears!)

nneonneo commented 1 year ago

I'm going to close this issue, as @dan2889 has not replied in a while and it seems to work fine for others. Please feel free to file a new issue if you continue to have issues.