zhanghai / zhanghai/MaterialFiles
FTP with USB tethering get error IP
Open
@zhanghai is already working on this.
Since Aug 6, 2026.
question
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
when i run FTP server with android USB tethering, MaterialFiles told me connect to 10.xxx.xxx.xxx but need is 192.168.198.254. So when my PC connect to Android failed, when change ip addr to 192.168.198.254 worked good. And AI told me that might because the default obtained IP was the first non loopback address.
adb shell ip -4 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
21: rmnet_data4@rmnet_ipa0: <UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN group default qlen 1000
inet 10.xxx.xxx.xxx/24 scope global rmnet_data4
valid_lft forever preferred_lft forever
42: rndis0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
inet 192.168.198.254/24 brd 192.168.198.255 scope global rndis0
valid_lft forever preferred_lft forever
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.