Search code examples
javascriptgoogle-chromehttpgeolocationprogressive-web-apps

Chrome Geolocation access to home network 192.168 via HTTP[noS]


Chrome allows Geolocation API access from HTTP (sans "S") loaded resources as long as their loaded from localhost or 127.0.0.1. However I would like to debug my mobile web app accessing my PC on 192.168.0.x is this possible?

I have tried loading the phone via Chrome debugging on the PC via USB but it still falls foul of the restriction. Any ideas?

BTW. The warning message has an "X" which I imagine is remove message but it doesn't work :-(


Solution

  • This is the only solution I could find: - Port Forwarding

    You have to be tethered to a USB cable but it works.