trishika / DroidUPnP

DroidUPnP is an upnp control point application for android.
GNU General Public License v3.0
150 stars 61 forks source link

Enable directory service over tethering interfaces #73

Open usefulsoftwaredev opened 6 years ago

usefulsoftwaredev commented 6 years ago

See issue https://github.com/occasionaldevshare/DroidUPnP/issues/1

usefulsoftwaredev commented 6 years ago

The main idea of the patch is: if trying to get addresses of usb0 and wlan0 failed, then:

This patch could be "expanded" (there is a default ip also for tethering over usb, 192.168.42.1 or 192.168.44.1, I do not remember). In situations when there are tethering interfaces (see code of pull request), and wifi tethering is disabled (see also code of pull request), then default ip address when tethering is enabled via usb could be used. Maybe special care will be needed for cases when tethering is enabled over bluetooth...