It’s much simpler way supported by google!
- Connect your phone via usb to computer and enable usb debugging
- On your computer open Chrome browser and type exactly this address:
chrome://inspect/#devices
- Now you can link your computer port to your device port by port forwarding button. On my computer I have service on address
localhost:61437
and I just linked it to device’s 8081 port. Remeber to check ‘Enable port forwarding’ checkbox