nythepegasus / SideJITServer

A JIT enabler for iOS 17 with a Windows/macOS computer on the same WiFi!
GNU General Public License v3.0
346 stars 26 forks source link

PyWinTunException(f"Failed to create adapter. Last error: {last_error.value}") #84

Closed ixon8 closed 1 month ago

ixon8 commented 1 month ago

SideJITServer starts up fine, but as soon as i connect the phone through usb, it throws this error File "C:\Users\exii\Desktop\ios\SideJITServer-1.3.1\venv\Lib\site-packages\pytun_pmd3\wintun.py", line 206, in init raise PyWinTunException(f"Failed to create adapter. Last error: {last_error.value}") pytun_pmd3.exceptions.PyWinTunException: Failed to create adapter. Last error: 0

ixon8 commented 1 month ago

and if i try to use the shortcut, it just says Could not find device error

ixon8 commented 1 month ago

Here is the entire error just in case it helps to figuring it out this thing ERROR:pymobiledevice3.tunneld:got exception from start-tunnel-task-usbmux-0000xxxx-000xxxxxxxxxxxxx-USB: Traceback (most recent call last): File "C:\Users\exii\Desktop\ios\SideJITServer-1.3.1\venv\Lib\site-packages\pymobiledevice3\tunneld.py", line 196, in start_tunnel_task async with start_tunnel(protocol_handler, protocol=protocol) as tun: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64qbz5n2kfra8p0\Lib\contextlib.py", line 210, in aenter return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\exii\Desktop\ios\SideJITServer-1.3.1\venv\Lib\site-packages\pymobiledevice3\remote\tunnel_service.py", line 1017, in start_tunnel async with protocol_handler.start_tcp_tunnel() as service: File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64qbz5n2kfra8p0\Lib\contextlib.py", line 210, in aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\exii\Desktop\ios\SideJITServer-1.3.1\venv\Lib\site-packages\pymobiledevice3\remote\tunnel_service.py", line 931, in start_tcp_tunnel tunnel.start_tunnel(handshake_response['clientParameters']['address'], File "C:\Users\exii\Desktop\ios\SideJITServer-1.3.1\venv\Lib\site-packages\pymobiledevice3\remote\tunnel_service.py", line 297, in start_tunnel super().start_tunnel(address, mtu) File "C:\Users\exii\Desktop\ios\SideJITServer-1.3.1\venv\Lib\site-packages\pymobiledevice3\remote\tunnel_service.py", line 179, in start_tunnel self.tun = TunTapDevice() ^^^^^^^^^^^^^^ File "C:\Users\exii\Desktop\ios\SideJITServer-1.3.1\venv\Lib\site-packages\pytun_pmd3\wintun.py", line 206, in init__ raise PyWinTunException(f"Failed to create adapter. Last error: {last_error.value}") pytun_pmd3.exceptions.PyWinTunException: Failed to create adapter. Last error: 0

RestytheCake commented 1 month ago

run as admin

ixon8 commented 1 month ago

run as admin

thanks, it will probably work, but i cant try, my iphone broke so thanks anyway