Could not connect to React Native development server on Android

前端 未结 28 1671
鱼传尺愫
鱼传尺愫 2020-11-30 22:10

When I run react-native run-android, it gives me the following error:

Could not connect to development server

28条回答
  •  有刺的猬
    2020-11-30 22:21

    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

提交回复
热议问题