local_server v0.2 [DEPRICATED]
py_httpserver_Ult ππβ
Note
UPLOAD PASSWORD: SECret
Requesting for more suggesions and ideas
Server side requirement
- Python 3.7 or higher (need to test lower versions)
- Basic knowledge about Python
send2trash
pip package (will be auto installed when the code runs)- (for windows) no need to download 7z (from here), it will be automatically downloaded
Installation
- Download the
local_server.py
- yes, only the
local_Server.py
. Other files are not necessary. - Install Python 3.7 or higher and run the
local_server.py
- The server will show your ip and port, use that with and local device browser under the same network
- Like this
192.168.0.100:6969/
- Like this
On Linux
On Linux give permissions by :
$sudo chmod +x local_Server.py
run like a script with :
$./local_Server.py
Customization
-
Simply running the code will create a server on
G:\ Drive
for windows onPort: 6969
-
On browser (same device as server), go to
localhost:port_number
to see the output -
To change the server running directory,
- i) either edit the code
- ii) or add
-d
or--directory
command line argument when launching the programlocal_server.py -d .
to launch the server in current directory (where the file is)local_server.py -d "D:\Server\Public folder\"
(Use Double-Quotation while directory has space)local_server.py -d "D:/Server/Public folder"
(Forward or backward slash really doesn't matter)
-
To change port number
- i) just edit the code for permanent change
- ii) or add the port number at the end of the command line arg
local_server.py 45678
local_server.py -d . 45678
-
To specify alternate bind address
- Add bind add
-bind {address}
- Add bind add
Basic FEATURES
- File Hosting system (Serve files from local Storage system)
- Access Shared File System from Multiple Devices
Extra FEATURES
- π½ DOWNLOAD AND VIDEO STREAM WITH PAUSE AND RESUME
- πΌ UPLOAD WITH PASSWORD
- π MULTIPLE FILE UPLOAD
- π RENAME
- π FOLDER DOWNLOAD as ZIP (uses temp folder)
- β― VIDEO PLAYER
- π DELETE FILE (MOVE TO RECYCLE BIN)
- π₯ PERMANENTLY DELETE
- β
File manager
likeNAVIGATION BAR
- 𧨠RELOAD SERVER FROM REMOTE [DEBUG PURPOSE]
- π FOLDER CREATION
- π¬ Pop-up messages UI(from my Web leach repo)
- π If you are using REAL IP AND ALLOW PYTHON TO USE PUBLIC NETWORK, YOUR SERVER CAN BE VISIBLE AROUND THE GLOBE. (also vulnerable, since you can't control access yet)
- π More comming soon