Search code examples
firebasefirebase-cli

firebase cli serve cant access the project from different device


I have install firebase cli etcetc. I can start the project and develop using firebase serve. I can visit the page of the project through localhost:5000 but if i try from different device in my network (mobile phone) to access network-ip:5000 I get connection refused.

Anyone knows what configuration/command it needs to forward port 5000 ? (different projects like creat-react-app works fine)


Solution

  • firebase serve -o 0.0.0.0
    

    The -o flag sets the host.

    For more information, see Server Fault: What's the difference between IP address 0.0.0.0 and 127.0.0.1?