Ngrok not working?

Hi, I’m trying to use ngrok to view my locally running phaser game/website on my cell phone.

I’m running my app (GitHub - EverybodyCodes/Phaser-Fish-Game) successfully on my local laptop at http://localhost:8080/

I’m using ngrok to try to host it publicly, but when I go to the site (eg. http://ab2f6064c46c.ngrok.io) then I get just an error message on the page: “Invalid Host header”

Anyone know how I can fix this? :thinking:

Thanks!

Try with this instead for running ngrok

ngrok http 8080 -host-header="localhost:8080"

Or, if you use webpack, it can be simplified with config:

devServer: {
  disableHostCheck: true
},

ref