I have a web application I’m developing locally.
I want to access my application via smartphone using wi-fi. Can I do that?
On my machine (OS Win10) I have
.hosts
file and there is a row:
127.0.0.1 mywebapplication/
I want to set up access to my local web application only to specific smartphone so I can use filter by MAC.
But on my PC I get to my web application just typing
mywebapplication/
in browser. How do I have to set up redirect? Thanks
What you need is to configure webserver to listen not only on 127.0.0.1, but also on PC’s LAN address, then the phone can connect to it. If phone uses router as DNS resolver, you can add:
/ip dns static
add address=<PC LAN address> name=mywebapplication
By default, there will be no filtering. If you’d want some, the only reliable way is to do it using your PC’s firewall, because connections from other same-LAN devices don’t go through router.