When I run react-native run-android, it gives me the following error:
react-native run-android
Could not connect to development server
This is most probably a firewall issue. If someone using ubuntu faces this issue , then you can use
sudo service iptables stop
to disable the firewall for the port to be accessible