Add note on how to stop the server

This commit is contained in:
Anthony Wang 2021-07-21 15:42:20 +00:00 committed by GitHub
parent 56b69db576
commit 093fcea488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ Otherwise, navigate to the directory with the file you would like to share. Now,
python -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. Done!
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. 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.