← BACK TO ENGLISH

http server examples - So you need to easily share something with someone in the same network

Date: 16 December 2015 | Updated: 16 December 2015

16 December 2015 | 5 min read

// = http server examples - So you need to easily share something with someone in the same network :id: 85fd1f19-752f-4e28-a3b6-ce72f258b2fc :author: Andrei Clinciu :website: https://andreiclinciu.net/ :publish_at: 2015-12-16 15:10:00Z :heading_image: \N :description: \N :type: article :tags: :keywords: :toc: left :imagesdir: ../assets/

image::{heading_image}[] So, you need to simply share something with someone on the same network without going through facebook or anyother chat application.

Use a simple HTTP server! The examples below are meant for Linux users, I’m sure you can use them on Windows aswell.

== For python you can use

python -m SimpleHTTPServer 8000

=== If you have PHP installed

php -S localhost:8000

=== A node.js server

sudo npm install http-server -g + http-server

For TCL you can use tanzer, tclhttp but I haven’t been able to find a oneliner so I’ll exclude this untill later.


Need something like this?

I build high-performance Go-based software and websites which I can host for you on a $5 Linux VPS. No intermediate agency layers, direct developer execution.

Discuss an Integration →

Andrei PrivacyZen Newsletter

Liked the article? join Andrei's PrivacyZen Newsletter. Topics include wellbeing, privacy, life, programming, and cybersecurity.