This commit is contained in:
Anthony Wang 2021-07-21 20:23:48 +00:00 committed by GitHub
parent 56970ae246
commit 6d3a678737
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ Otherwise, navigate to the directory with the file you would like to share. Now,
python3 -m http.server
```
Now scream your private IP address to your friend and tell them to go to http://*IPADDRESS*:8000 in their web browser. All they need to do is download the file. They can even use a TUI browser like [lynx](http://lynx.browser.org/) or even `curl`. When everything's done, you can press Ctrl-C to stop the HTTP server. Mission accomplished!
Now scream your private IP address to your friend and tell them to go to http://*IPADDRESS*:8000 in their web browser. All they need to do is download the file. They can even use a TUI browser like [lynx](http://lynx.browser.org/) or plain `curl`. When everything's done, you can press Ctrl-C to stop the HTTP server. Mission accomplished!
## Scripting
Wow, that was easy enough that you could probably easily write a script to do it. Lucky for you, check out [share.sh](share.sh) for a prewritten script to automate this process.