NyaMisty / AltServer-Linux

AltServer for AltStore, but on-device
GNU Affero General Public License v3.0
951 stars 73 forks source link

Failed to create heartbeat service: -256 using AltServerUPnP (from iSH) #12

Closed wielski closed 2 years ago

wielski commented 2 years ago

Hello. I'm trying to use AltServerUPnP from iSH running on iOS device, but always get error:

[setupPairInfo:131] Setup pairInfo...
setsockopt(IP_MULTICAST_TTL,...): Invalid argument
[initUPnP:45] Got good upnp igd: http://192.168.1.1:52869/upnp/control/WANIPConn1
[initUPnP:63] Got ExternalIPAddress = 100.104.43.198

[main:182] upnp init successfully!
[main:185] Connect device...
[initHeartbeat:100] Start hb...
10:39:42 src/phone/idevice-stub.c:54 idevice_connect(): Connecting to 192.168.1.8:62078 via 100.104.43.198:24522...
10:39:47 src/phone/idevice-stub.c:63 idevice_connect(): ERROR: Connecting to network device failed: 115 (Operation in progress)
10:39:47 libraries/libimobiledevice/src/lockdown.c:635 lockdownd_client_new(): could not connect to lockdownd (device 00000000-MYDEVICEUUID)
10:39:47 libraries/libimobiledevice/src/lockdown.c:667 lockdownd_client_new_with_handshake(): failed to create lockdownd client.
10:39:47 libraries/libimobiledevice/src/service.c:89 service_client_factory_start_service(): Could not create a lockdown client.
[initHeartbeat:105] Failed to create heartbeat service: -256
[main:191] failed to init heartbeat! exitting...

UPnP is enabled on router, port is open:

nc -vnzu 100.104.43.198 24522
Connection to 100.104.43.198 port 24522 [udp/*] succeeded!

I think this happens because of 115 (Operation in progress) is not error, when getting this code we should wait asynchronously for connection establishment.

NyaMisty commented 2 years ago

I think it's iSH's update's fault, But I really don't have time digging into this :(

NyaMisty commented 2 years ago

Now iSH support are dropped