zhanghai / MaterialFiles

Material Design file manager for Android
https://play.google.com/store/apps/details?id=me.zhanghai.android.files
GNU General Public License v3.0
6.14k stars 414 forks source link

Share on hotspot network only #848

Open Immortalin opened 2 years ago

Immortalin commented 2 years ago

Many public WiFi networks block P2P filesharing, FTP is still possible using the phone's hotspot feature. However this is not very accessible to casual users as the app defaults to displaying the wlan0 IP address which is often the public network.

Proposal: give users an option to limit sharing only to certain networks and display the IP addresses of both public and hotspot networks.

zhanghai commented 2 years ago

The app runs the FTP server on 0.0.0.0 and it's much harder to limit that to one nic.

Maybe I can prefer showing the IP in a hotspot network though, but I'm not sure how to detect it on Android.

SodaWithoutSparkles commented 2 years ago

I believe your IP in a hotspot network is the same as router address(路由器地址/闸道地址). Which usually ends with .1