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,

chevron-rightPythonhashtag
Python -m SimpleHTTPServer 80
chevron-rightPython3hashtag
Python3 -m http.server 80
chevron-rightPHPhashtag
Php -S 0.0.0.0:80
chevron-rightRubyhashtag
Ruby -run -e httpd . -p 80
chevron-rightBusyboxhashtag
Busybox httpd -f -p 80

Last updated