I have a dev machine with Windows 11 where I run a web application. I use a custom domain to address it, i.e. I have put the following lines in the hosts file
127.0.0.1 myapptest.com
127.0.0.1 sub.myapptest.com
etc
Now I want to have the opportunity to test a mobile version of it using a real physical device, connected to the same wifi network as my dev pc. How can I set my environment so that if I typed sub.myapptest.com
in the phone's browser it'd work?
I assume a custom DNS server might be an answer. Are there any for Windows nowadays? Can I run one using WSL2? Docker?