This allows you to access ADB shell over network
sudo npm install -g remote-adb-shell
Usage: remote-adb-shell [options] <host> (default host: localhost)
Options:
-h, --help output usage information
-V, --version output the version number
-s, --server Server mode
-p, --port <port> Port (default: 9999)
Start server: remote-adb-shell -s
Connect to server: remote-adb-shell [server ip]