MobileRoboticsSkoltech / OpenCamera-Sensors

Android app for synchronized recording of video and IMU data with advanced camera options, useful for 3D reconstruction, SLAM, AR, video stabilization. Supports remote control over network.
GNU General Public License v3.0
176 stars 19 forks source link

Local IP address detection in remote control #39

Open TimPushkin opened 3 years ago

TimPushkin commented 3 years ago

In it's current state RemoteRpcServer.getIPAddress() finds the first IPv4 address that is not localhost and is not on a dummy interface. But if there are several addresses that meet these requirements picking the first one may not be the right choice. For example, the one from usbnet0 may be picked when we need the one from wlan0.