What worked for me was to launch the developer menu :
adb shell input keyevent 82
In the Dev Settings > host and port of the debug server for the device, I entered the local IP address of my machine, and then port 8081, that is 192.168.0.1:8081.
To get the local IP address, I used the command ifconfig, and I found the value of the inet field for the Wifi interface, i.e. wlp2s0 .
Hope this helps!
EDIT
, .