Quick Webservers

Every now and then you run into a situation to transfer files quickly between systems. Hosting a file on a webserver is the easy way to download it into a system without having to deal with firewall restrictions as http is mostly allowed. Here are ways to quickly host files from systems using some of the popular scripting languages or frameworks,

Python
Python -m SimpleHTTPServer 80
Python3
Python3 -m http.server 80
PHP
Php -S 0.0.0.0:80
Ruby
Ruby -run -e httpd . -p 80
Busybox
Busybox httpd -f -p 80

Last updated