1. I am testing with a rooted nexus 5 operating on lollipop 5.1.
2. This is all with no wifi connection.
I am trying to send UDP packets between a PC and an android device with an otg cable and ethernet dongle. When connected the PC thinks the android is an unidentified network(No internet access) and the android recognizes the device as eth0 with an IP of 0.0.0.0.
eth0 UP 0.0.0.0
I add an IP to the eth0 by running the following unix script:
netcfg eth0 up
ifconfig eth0 192.168.1.200 netmask 255.255.255.0
route add default gw 192.168.1.1 dev eth0
ping -c 1 192.168.1.1
After running the script eth0 appears in the command line as:
eth0 UP 192.168.1.200
I am using wireshark to track packets and when I try to open an interface between the PC and android I get an error as follows:
(Error opening adapter: The system cannot find the device specified. (20)).
Also, when I try to PING the PC from the android I get 100% packet lost.
So it seems like I don't have a connection between PC and android. Any input on the topic would be very helpful.