![](https://lemmy.sdf.org/pictrs/image/1e36e9bb-5d6a-4e1f-b995-e3344e9c7364.png)
![](https://lemmy.dbzer0.com/pictrs/image/a18b0c69-23c9-4b2a-b8e0-3aca0172390d.png)
My lazy way is NGINX with autoindex.
If it's to go over untrusted network (e.g.: internet, school network) I use SSH for port forwarding. Lazy encryption.
Something like this works just fine:
worker_processes 1;
daemon off;
events {
}
http {
default_type application/octet-stream;
server {
root /storage/emulated/0/sharedfile;
listen 127.0.0.1:30000;
location / {
autoindex on;
}
}
}
sharedfile is a directory with the files.
On remote machine if I am not mistaken
ssh -L 127.0.0.1:8080:127.0.0.1:30000 username@host
Then just access it in web browser on 127.0.0.1:8080 or whatever port you chose.
In PuTTY you can find this under "Tunnels".
Of course, you need to have SSH server set up as well.
I can get it on Android too, but for like 3 years or even more.
But only if using US VPN.