posted at the weekend, bumped for the work week crowd
Develop on Windows 10, but not when offline
At home, I'm happy developing on Mac
On the road, I have Windows 10 laptop. I have created a development environment using WSL, mostly following the steps here https://medium.com/jackabox/setting-up-wsl-on-windows-10-to-develop-with-php-laravel-60574a8612fd
So I have Ubuntu, Acrylic DNS and Valet all working to serve sites under a .test domain
All works well, except that if I'm off-line (no wifi, or in airplane mode) then its not possible to connect to my local sites. Anyone have any suggestions?
Confusingly, curl from the command line gets the site's home page so DNS is resolved and the web server is running. Its only Chrome and Edge that refuse to connect.
It's been a few years since I last used Acrylic and one of the reasons for it was exactly this. It would not work if you weren't connected to the internet, given that it works by setting the DNS resolver address of the active connection. Even if you try fooling it with a loopback interface, it wouldn't work. Not sure if that's still the case, but something to consider.
If this is the case, the only other option is to go from a virtual environment (docker, vagrant, etc.), since those do create actual networks that you can set the resolver on. It's that or just edit your windows hosts file to point whatever domain you're working on to 127.0.0.1
Please or to participate in this conversation.