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

前端 未结 10 576
旧时难觅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:01

    After running npm start go to your terminal "bash, cmd ..etc" and run ipconfig

    IPv4-Adresse ..... : for example 111.222.333.444

    open browser in your second device and type : 111.222.333.444:portNumber

提交回复
热议问题