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
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.