Or if you are using Linux, there is a httpd (web server) in the busybox package:
busybox httpd -f -p 0.0.0.0:10080 -h ~/public/
Or if you are using Linux, there is a httpd (web server) in the busybox package: