experiment322 / controlloid-client

Android app which turns your phone into a game controller.
GNU General Public License v3.0
103 stars 11 forks source link

Detect server on local lan #5

Closed rgarrigue closed 5 years ago

rgarrigue commented 5 years ago

It could be as simple as implementing a ping/pong function between server and client, and a port scan search over RFC1918 networks for the client to find server

experiment322 commented 5 years ago

This is a planned feature that will be implemented in the close future. Thanks for creating an issue to keep track of it.

Useful resources react-native-device-info

rgarrigue commented 5 years ago

Thanks. A maybe easier feature but still saving time would be to save the last imputed value.

experiment322 commented 5 years ago

Implemented in v1.1.0 using react-native-network-info and performing a HTTP HEAD request over an IP range (considering a /24 subnet given the device IP) on port 31415. Thus it won't work if the device is in a bigger network or in a smaller upper one, but almost all home networks are configured with a /24 subnet.

rgarrigue commented 5 years ago

Can you publish it on F-Droid ? Tried direct installation, didn't worked

experiment322 commented 5 years ago

It doesn't work because it has different signatures. You need to wait a few days as fdroid has an automatic update mechanism based on git tags. It will be there soon!

experiment322 commented 5 years ago

It will take a little more as there was a build issue.