E N D
Run Nodejs Application Run Nodejs Application on port 80 on port 80 Credits: https://github.com/kentbrew
Run node js app with admin privileges SUDO Warning this is not the safest method Running web apps with Admin privileges is frowned up on. Anyway : here you go sudo node myapp.js A better method on the next slide
IP TABLE IP TABLE MORE SCARY pain in the a (But more safe)
Run sudo iptables -t nat -L Shows current iptable Rules. Check if any rules with port 80 is defined. If not add new rule by running: sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8888 --dport value shows the port to which the connections should be received by OS --to-ports value shows where the communication should be redirected to. ie, myapp.js running port.
Credits : https://github.com/kentbrew