Search code examples
firebasefirebase-hosting

How to know the IP address of the default domain in Firebase Hosting


I'm currently using firebase hosting with my default domain.

Is there a way to check if the IP address associated with this domain is a static IP address?

thank you very much.

  • I looked up her IP on an IP address lookup service and it pointed to the same her IP address for several days.

  • I checked the firebase hosting reference, but there was no explanation about the default domain.

    * https://firebase.google.com/docs/hosting
    

Solution

  • Edit: @pregum_fox (the OP) added in the comments below that when they contacted Firebase Support directly, the team confirmed that all *.web.app and *.firebaseapp.com domains will resolve to the same IP address - which at the time of writing is 199.36.158.100, a Fastly edge server. Custom domains will use a different edge server identified in the Firebase Console.


    Original content:

    If it's not documented, it likely isn't - or at least, is not guaranteed to be.

    The only time an IP address linked with your Firebase Hosting site should not change (without being advised), is when you've connected it to a custom domain. This is because the IP address you register as the A record for your custom domain must remain the same to work properly. If it changed often, using a custom DNS would be pointless.