I would like to connect a client to my Node.js web server via my rpi access point.
I have successfully setup my rpi3 stretch as an access point. Now I am trying to have the client redirected to the simple web server running on the Pi.
I have seen this iptables redirection but its not working for me.
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination localhost:80 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination localhost:80
Once my client connects to the RPi AP wifi I am not redirected to any browser to the destination of the server. I can verify the iptable rules are there using.
iptables -t nat -L -n -v
I would like to be able to have the client redirected to a browser and the destination with out having to manually open a broswer and type in the address.
Can anyone help with this?