Skip to content

WebServerAndroid

Turn any Android phone into a full HTTP/HTTPS server. Offline file sharing, 4K streaming, static hosting. 0.5 MB, no cloud.

Android 5.0 – 16+ Download APK (<0.5 MB)

Android Version Support

Runs on Android 5.0 Lollipop up to the latest Android 16+ (2026).

Min SDK 21

Backward compatible, works on 2014+ phones, tablets, TV boxes.

Target SDK 36

Optimized for Android 16 and future releases. Pure Java sockets.

Low‑RAM Ready

Adaptive buffers, runs smoothly on 512 MB RAM (Android Go).

No Google Services

Zero analytics, zero tracking, zero cloud dependencies.

Intelligent Core Engine

Raw Java sockets, zero external libraries. Built for speed, resilience, and security.

Adaptive Performance

Dynamic buffer sizing (64 KB – 4 MB) based on available RAM.

Resumable Uploads

10 MB chunks, persistent progress manifests. Survives crashes.

Enterprise Security

HTTP Basic Auth with thread‑safe password handling.

mDNS Discovery

Bonjour/Zeroconf auto‑advertising, foreground service.

Smart Deduplication

SHA‑256 hashing + slice sampling for large files.

Built‑in HTTPS

One‑tap toggle, pre‑embedded self‑signed certificate.

Complete Feature List

CategoryFeatureDescription
SizeAPK < 0.5 MBInstalls in seconds, perfect for limited storage.
UploadResumable Chunked Uploads10 MB chunks, only missing parts retransmitted.
Upload100 GB+ File SupportNo artificial size limits.
DownloadFolder as ZIPStreaming ZIP archive of entire folder.
Media4K Video StreamingMP4, MKV, AVI, MOV, WebM, etc.
MediaHigh‑Resolution AudioMP3, FLAC, OGG, WAV, AAC, Opus streaming.
MediaImage PreviewJPEG, PNG, GIF, SVG, WebP, BMP, TIFF.
Web HostingStatic HTML/CSS/JSFull website hosting with relative paths.
File MgmtDelete, Rename, Create Folder, UploadAuthenticated remote management via web UI.
SecurityBasic HTTP AuthSecure mode unlocks management actions.
DiscoverymDNS / Find ServersOne‑tap browser open, system notifications.
NetworkWi‑Fi, Hotspot, CellularWorks completely offline, zero data usage.
PerformanceHigh‑Speed ModeDisables Nagle, increases socket buffers.
UIDark/Light ThemeFollows system preference.
ExtrasShare APK, Wallpapers, DocumentsAPK games, 4K wallpapers, PDFs, Office files.

WebServer-Android vs. Others

FeatureTopt StudioKSWEB (Paid)AWebServerLocalhost Lite
APK Size< 0.5 MB~15 MB~10 MB~2 MB
PriceFree (MIT)Paid/FreemiumFreeFree
Resumable Chunked UploadYesNoNoNo
mDNS DiscoveryYesYesNoNo
Hotspot ModeYesLimitedNoNo
HTTPS Built‑inYesYesNoNo
File Mgmt (Del/Rename)YesYesNoNo
Stream ZIP FoldersYesNoNoNo
Android 16+ SupportYesUnknownUnknownUnknown
PHP/MySQLNo (Static)YesYesNo

Web UI – Public vs. Secure Mode

🔓 Public Mode

Browse, download, stream, view images/PDFs. No modification rights.

🔒 Secure Mode

Set credentials to unlock Delete, Rename, Upload, Create Folder.

Network Support

Performance & Efficiency

Ultra‑Lightweight

Pure Java sockets, no external frameworks.

Chunked Upload Resilience

Temp storage on SD card, resumes after crash.

High‑Speed Mode

Disables Nagle, larger socket buffers.

Adaptive Buffer

64 KB to 512 KB auto‑tuning.

Connection Limit

Capped at 20 to prevent exhaustion.

No Database / No Caching

Direct file serving, minimal overhead.

Real‑World Use Cases

  1. Digital Nomads – share offline, zero data charges
  2. Developers & QA – test responsive sites on real devices
  3. Gamers – host ROMs, APKs for friends
  4. Students & Teachers – distribute lectures offline
  5. Content Creators – share 4K footage on set
  6. IoT & Smart Home – old phone as local dashboard
  7. Offline Documentation – workshops, labs, remote sites

Screenshot Gallery

Mixed theme main screen Mixed theme main screen

Dark Mode vs Light Mode

Dark ModeLight Mode
Dark file listLight root dir
Dark video streamingLight video streaming
Dark settingsLight settings
Dark upload progressLight upload progress
Dark auth dialogLight auth dialog
Dark mDNSLight mDNS
Dark ZIP downloadLight ZIP download
Dark hotspot guideLight hotspot guide
Dark file actionsLight file actions
Dark notificationLight notification

Quick Start

  1. Download the APK from Releases page.
  2. Install & grant storage/notification permissions.
  3. Pick a folder to share (SAF or legacy).
  4. Set port (default 9999) – root needed for 80/443.
  5. Tap Start Server; note the IP.
  6. On another device, open http://<phone-ip>:9999 or use Find Servers.

Frequently Asked Questions

How do I install this Web Server APK on Android 13, 14, or 15?
Download the APK from the Releases page. If Google Play Protect warns, tap “More details” → “Install anyway” (the app is 100% safe and open source). On Android 11+, the app will guide you to grant “All files access” using SAF if needed.
Can I use this Android Web Server without Wi‑Fi?
Absolutely! Start a Hotspot (Access Point). Others connect to your Wi‑Fi hotspot and access the server via the gateway IP. No router required.
Does this WebServer support HTTPS (SSL)?
Yes. A self‑signed certificate is built in. Toggle HTTPS on/off from the main screen. When enabled, use https:// in the browser.
Is this Web Server App completely free?
Yes, 100% free and open source under the MIT License. No fees, no in‑app purchases, no premium versions.
How do I change the port?
Use the “Port” input on the main screen (default 9999). Restart the server after changing. Rooted devices can use port 80 or 443.
What is the maximum file size I can share?
No artificial limits – tested with files up to 100 GB. The chunked engine handles any size that fits your storage, bypassing FAT32's 4 GB limit.
How do I find the IP address of my Web Server?
The app displays both the Wi‑Fi IP and the Hotspot IP (if active) prominently on the main screen.
Can I stream 4K video?
Yes. As long as your network bandwidth supports it (e.g., 5 GHz Wi‑Fi), 4K videos play smoothly in modern browsers.
What happens if the app crashes during a large upload?
The chunked upload engine saves temporary chunks to SD card. When you restart the server and retry, it resumes from the last completed chunk – no data loss.
How do I uninstall the WebServer APK?
Uninstall like any app from Android Settings. Your files remain untouched.
Does this app drain my battery?
Minimal. It uses CPU only when actively serving requests; idle consumption is virtually zero.
Can I share the APK with my friends directly?
Yes, use the “Share” button or host the APK file itself using this server, then send it via Bluetooth, Nearby Share, etc.
What is the Phone-as-Web-Server concept?
It means using a mobile device as a fully functional web server for file serving, website hosting, and network services – without cloud infrastructure. WebServer-Android is a prime example.
Can I use this for mobile‑first homelab projects?
Definitely! Perfect for running lightweight services, dashboards, or APIs on an old Android phone, reducing power and hardware costs.
How does the resumable upload engine work?
Files are split into 10 MB chunks; a progress manifest tracks what's uploaded. Only missing chunks are retransmitted, and all chunks are verified before assembly.
How does the app handle duplicate files?
The deduplication system uses SHA‑256 hashing. For large files, smart three‑slice sampling provides near‑instant identification without hashing the entire file.

Troubleshooting Common Issues

Permissions – Why They Are Needed

PermissionReason
INTERNETRequired to run the web server and accept incoming connections.
FOREGROUND_SERVICEAllows the server to run in the background with an ongoing notification.
POST_NOTIFICATIONSFor server status and discovery alerts – no other notifications are sent (Android 13+).
MANAGE_EXTERNAL_STORAGEFull file access; not required if SAF is used (Android 11+).
ACCESS_WIFI_STATE, CHANGE_WIFI_MULTICAST_STATENeeded for mDNS discovery.
RECEIVE_BOOT_COMPLETEDOptional – enables auto‑start on device reboot (must be enabled in settings).
WRITE_EXTERNAL_STORAGE (max SDK 29)Legacy permission; not used on Android 10+.
ACCESS_COARSE_LOCATION (max SDK 30)Required for Wi‑Fi scanning (SSID) for mDNS; GPS is never used.
NEARBY_WIFI_DEVICES (min SDK 31)Modern replacement for location permission to access Wi‑Fi info (Android 12+).

No data leaves your device. No analytics, no tracking, no cloud services. All traffic stays on your local network.

Roadmap – Upcoming Features

Contributing

This project is 100% open source (MIT license). Contributions are welcome! Open issues, suggest features, submit pull requests, or improve documentation.

Building from source: see BUILD.md for detailed instructions.

License – MIT

MIT License – see the LICENSE file for full text.

Built for the open source community. ❤️
↑