My favorite trick to quickly share a file within a network is to go to its directory and spin up a web server.

In Python 3 that’s this classic one-liner:

cd $directory && python3 -m http.server 8000

Anyone opening in http://<your-machine>:8000in their browser, will see the files of directoryand is able to download them.

Since JDK18 Java can do a similar trick, there the future classic one-liner is:

cd $directory && jwebserver -b