A file server to host your m3u (or other files) files across your network with url password protection
If on Windows you have the option of just running the bundled version from the release section
https://github.com/purplescorpion1/StreamFileServer/releases
When you run the program it will ask you to enter
The port number you wish to use
The username you wish to use
The password you wish to use
The location where your files are - important to use forward slashes in the file path eg C:/folder/folder
Alternatively you can use the source code as explained below
Requires node.js https://nodejs.org/en
git clone https://github.com/purplescorpion1/StreamFileServer.git
cd StreamFileServer
npm install express axios
Open the script in notepad++
const serverPort = 6025; // Set your desired port number
Change port number to what you want
const serverRoot = 'C:/folder/folder'; // Set the path to your server root directory
Change C:/folder/folder
To where the script is running containing all your files you want host on the server
const expectedUsername = 'username'; // Set your desired username
const expectedPassword = 'password'; // Set your desired password
Change the username and password fields to your user name and password leaving the ' in place
node server.js
You can either use localhost (if accessing on the machine the server is running on) or the ip address of the machine running the script for other devices
To access files use the following url
if username = 123
if password = abc
http://ipaddress:portnumber/file.m3u?username=123&password=abc
Setup port forwarding on your router
Set a public port to forward to local port the script is running on
if username = 123
if password = abc
http://publicipaddress:publicportnumber/file.m3u?username=123&password=abc