Open rick51231 opened 2 years ago
@rick51231 Any chance you can include a diff?
It appears you modified server.js
However, unsure what
// ...
Is meant to represent. What was commented out?
Thank you for this tip @rick51231 . I was able to get it working after a few minutes using nemesis on my android clients. Silly that ubiquiti doesn't just add a direct ip field and use certificate pinning to secure it.
@copart Sorry, did not see you message. I've made a pull request with nemesis code in #3
@sntiforo I've made some reverse engineering of android app and it's easy to fix direct connection ability, but they have multidex in a app and idk how to recompile it back from decompiled one.
@rick51231 Thanks for the fix, it worked!
However, I really hate that Unifi does not have a way to just direct connect, it knows the IP of my cloud key!!! Crazy.
This bridge work fine with iOS app, but android requires that packet src ip should be equal to unifi ip.
Workaround for me is to use nemesis ( https://github.com/libnet/nemesis )
This code work fine with both apps via wifi. It is also possible to connect remotely via vpn (WireGuard for me), but only from android and you should be connected via wifi (e.g. from another smartphone).