Skip to content

A file server to host your m3u & other files across your network with url password

Notifications You must be signed in to change notification settings

purplescorpion1/StreamFileServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Stream File Server

A file server to host your m3u (or other files) files across your network with url password protection

How To Install - Windows

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

How To Install via source code - All opperating systems that can run node

Requires node.js https://nodejs.org/en
git clone https://github.com/purplescorpion1/StreamFileServer.git
cd StreamFileServer
npm install express axios

How To Configure

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

How To Run

node server.js

How to Access m3u (or other files) in apps

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

How to Access m3u (or other files) in apps whilst outside your network

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

About

A file server to host your m3u & other files across your network with url password

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published