How to deploy a game to a webhost without an IP address?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lodea

So, I’m making a simple multiplayer game and it goes well so far but I’ve stumbled into a problem. When testing I connect the client to the server with the IP address 127.0.0.1 and it works great, but when deploying the game to a hosting service (Firebase) I have no idea what IP address to use since they don’t provide one (for reasons I’m not well versed enough in the subject to understand).

Is there a way to retain the bi-directional communication functionality without giving an IP address? Does it mean I need to make and run a server from my own machine?

Thanks in advance for the help.