Pixel Streaming and Ngrok "connecting to server please wait"


I am using Ngrok to have other people connect to the pixel streaming project running on local host problem is it works fine as long as the device I am using is connected to the same internet but as soon as the network changes i.e. I might use my phone data to connect the screen gets stuck on “Connecting to Server”