In this blog we are dealing with an error in setting up android device when you are going to develop some app on react native and want to check the app on your connected android device.
When I connected my device and I have already install adb if you don’t have this package installed install it using this command:
sudo apt install adb
Then I checked my device is connect or not by running this command:
adb devices
when I start my project with expo start then I am getting this type of error.
Couldn't adb reverse: cannot bind listener: missing port in specification: 'tcp:null'
first you have to check your firewall is enabled or not. You can check the status of firewall by using this command:
sudo ufw status
And then you can check list of those ports which are listening using this command.
sudo lsof -i -P -n | grep LISTEN