How to open a create-react-app from another computer connected to the same network?

前端 未结 10 751
旧时难觅i
旧时难觅i 2021-02-02 06:38

I am using create-react-app and hosting in its default port localhost:3000 and want to access this from another device on the same net

10条回答
  •  情书的邮戳
    2021-02-02 07:16

    As I can't post comment, In complementary to Elad if you have react-scripts start instead of npm run start

    HOST=0.0.0.0 react-scripts start

    Works too !

提交回复
热议问题