-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidea.txt
More file actions
103 lines (77 loc) · 4.07 KB
/
Copy pathidea.txt
File metadata and controls
103 lines (77 loc) · 4.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/bibekchandsah/server.git
git push -u origin main
git remote add origin https://github.com/bibekchandsah/server.git
git branch -M main
git push -u origin main
ipconfig | findstr "IPv4"
Stop-Process -Name cloudflared -Force
# Download: https://github.com/cloudflare/cloudflared/releases
winget install --id Cloudflare.cloudflared
Get-ChildItem -Path "C:\Program Files*" -Recurse -Filter "cloudflared.exe" -ErrorAction SilentlyContinue | Select-Object FullName
python server_fast.py
.\cloudflared.exe tunnel --url http://localhost:8000
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel --url http://localhost:8000 --protocol h2mux
& "C:\Program Files (x86)\cloudflared\cloudflared.exe" tunnel --url http://localhost:8000 --protocol http2
Speed Comparison Summary:
----------------------------------------------------------
Method Speed Setup Notes
Ngrok (ngrok free) Easy 1 Mbps
Ngrok Pro 10-50 Mbps Easy $8/month
Cloudflare Tunnel 50-100 Mbps Easy Free!
cloudflared.exe tunnel --protocol http2 --url http://10.5.234.63:8000
cloudflared.exe tunnel --protocol http2 --url http://localhost:8000
user choice directory (path)
user choice port (default = 8000)
speed is maximum
chunnk size in MB is 8
buffer in MB is 4
maximum file size limit is 16GB
enable resume downloads
enable threading or multiple user and file download handling
enable cache for 1 hour
UI style is professional with file details
attach cloudflared with exe file
show cloudflared url and autocopy to clipboard
================================================================================
🚀 HIGH-PERFORMANCE FILE SERVER
================================================================================
� DIRECTORY CONFIGURATION:
Enter directory path to share (or press Enter for 'D:\server\index'): D:\server\index
✅ Selected directory: D:\server\index
✅ Found 16 files in directory
🌐 PORT CONFIGURATION:
Enter port number (default: 8000): 8000
✅ Selected port: 8000
--------------------------------------------------------------------------------
================================================================================
�📋 SERVER CONFIGURATION:
--------------------------------------------------------------------------------
📦 Chunk Size: 8 MB
🔧 Socket Buffer: 4 MB
📊 Max File Size: 16 GB
⚡ Speed Mode: MAXIMUM
♻️ Resume Downloads: ✅ Enabled
👥 Multi-User Support: ✅ Enabled (Threading)
💾 HTTP Caching: ✅ Enabled (1h)
================================================================================
✅ SERVER STARTED SUCCESSFULLY!
💡 SHARING TIPS:
• Use Local URLs on this computer
• Use Network URL on your local network (LAN)
• For internet sharing, we will use Cloudflare Tunnel
🛑 Press CTRL+C to stop the server
--------------------------------------------------------------------------------
🚀 Starting high-performance file server...
* Serving Flask app 'file_server'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:8000 (for this pc)
* Running on http://10.5.234.63:8000 (for same wifi pc)
* Running on https://delicious-characters-karen-validity.trycloudflare.com/ (for global share)
pyinstaller --onefile --name "HighPerformanceFileServer" --icon=favicon.ico--clean --exclude-module PyQt5 --exclude-module PyQt6 --exclude-module tkinter --exclude-module matplotlib --exclude-module numpy --exclude-module IPython --exclude-module kivy --exclude-module kivymd --exclude-module pygame file_server.py
pyinstaller --onefile --name "HighPerformanceFileServer" --clean --exclude-module PyQt5 --exclude-module PyQt6 --exclude-module tkinter --exclude-module matplotlib --exclude-module numpy --exclude-module IPython --exclude-module kivy --exclude-module kivymd --exclude-module pygame file_server.py