bahamas10 / unifi-proxy

a hack to allow direct connections to unifi protect on a different layer 3 network
61 stars 8 forks source link

iOS app says "Device not found" #7

Open adams-family opened 1 year ago

adams-family commented 1 year ago

Hi,

I love this idea, I think it's brilliant, but unfortunately it doesn't seem to work with my app :(

Repro steps:

1) Run client.js directly on the UniFi CloudKey via SSH, created my packet.json successfully. 2) Copy packet.json and server.js on a virtual machine on the same network the iPhone runs on.

It looks like this:

image

3) Run:

$ ./server.js packet.js

listening on 0.0.0.0:10001
got message from 192.168.1.43:55075    <-- my iPhone
successfully sent 154 bytes
got message from 192.168.1.43:55199
successfully sent 154 bytes
got message from 192.168.1.43:54951
successfully sent 154 bytes
got message from 192.168.1.43:55011
successfully sent 154 bytes
got message from 192.168.1.43:55075
successfully sent 154 bytes
got message from 192.168.1.43:54951
successfully sent 154 bytes

However the phone says "Device not found":

68AD448C-7761-4196-99D1-04D52AFE3A84_1_102_o

Any ideas what can be wrong?