Simple netcat implementation for Android. It can be used for direct transfer character data between computer and Android device.
Netcat binary (nc) is included to "netcat-openbsd" or "netcat-traditional" packages (for Debian/Ubuntu). All examples is written for nc from netcat-openbsd package because it is default (at least for Ubuntu 12.04/14.04).
$ nc -v -l 9999
Assuming that computer IP address is 192.168.1.2 one can connect with Simple NetCat using "192.168.1.2:9999" as "Connect to" string.
$ nc -v host|ip-address 9999
Start listening port 9999 with Simple NetCat before executing this command (use your Android device IP-address). To determine mobile device IP-address one can use ipconfig application.
nc -v -l 9999 > file.out
Data sent from Simple NetCat will be saved in "file.out".
nc -v -l 9999 < file.in
"file.in" content will be received by Simple NetCat.
This is important thing! Simple NetCat will receive data from computer right after terminating nc binary (with Ctrl-C).
We have a simple solution for Windows users now. You just can download binary from Bintray.
Sincere gratitude for authors of these open-source software:
- Butter Knife - simple views injection.
- EventBus - Android-optimized pub/sub event bus.
- Robolectric - awesome unit test framework.