Skip to content

FTP with USB tethering get error IP #1601

Description

@Yi-Qing

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions