Closed mfe7 closed 6 years ago
My objective is to communicate between an Ubuntu PC and an Android device via USB.
This tool will only allow to open connections from your Android to your computer. The device and the computer won't be on the same network.
-d
).dig -x 35.163.66.137
).Thanks
My objective is to communicate between an Ubuntu PC and an Android device via USB. Typically to verify if two devices can communicate I'd ping the other device's IP address from a device, and vice versa.
In this case I'm not sure what the IP addresses are, but I am guessing from the terminal output that it's
10.0.0.2
and35.163.66.147
or8.8.8.8
.While the script is running, on the Android, I can do
ping 10.0.0.2
and get responses in 0.2ms, and on Ubuntu I can doping 8.8.8.8
and get responses in 5.8ms. However if Iping 8.8.8.8
on the Android I get a bunch ofW Router: Dropping invalid packet
warnings and no responses. When Iping 8.8.8.8
on Ubuntu, I get no responses but also no warnings. This lack of bi-directional pinging would normally tell me the communication is not succeeding, but I am a beginner to Android.My main question is: is this the right way to determine if the connection is working?
Other questions: What is the
35.163.66.147
address associated with TCP, and why can't I ping it from either end? Right now I'm using an x86 desktop, but will this code work on an ARM processor?Overall, I don't actually care about passing the internet through USB (i.e. sharing ability to reach google.com) - I just want the two devices to be on the same network so I can communicate with ROS, where a prerequisite is to establish communication from each device to the other. Not sure if such a use case is best addressed by this package.