Solution to running FRAPPE/ERPNEXT in local network

I was running frappe from one of my ubuntu computers and wanted to access website through my other windows computer. Couldnt find anything on internet thats why posting it as a solution.

Firstly get you local ip by typing "ifconfig (in terminal) it will look like
then just enter these lines in base frappe/erpnext folder (by firstly changing to your own ip)
ufw allow 8000
ufw allow tcp/8000
bench new-site
bench --site add-to-hosts
bench --site install-app erpnext
then just visit from any network computer and it will work fine!

You can follow this step by step…