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

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

    If you are on Ubuntu, simply run

    $> sudo ufw allow 3000
    

    Then access your app using your internal ip from local network. to get your local IP run:

    $> ifconfig
    

提交回复
热议问题