A lightweight Android proxy that lets you access remote servers via localhost, giving your web apps the same privileges as a secure origin — without needing HTTPS certificates on your dev server.
Testing web features that require a secure context (HTTPS or localhost) is painful during development. Browsers treat localhost as a secure origin, which means features like these work without HTTPS:
- Microphone / camera access (getUserMedia)
- Installing PWAs (Add to Home Screen / service workers)
- Clipboard API
- Web Bluetooth / Web USB
- Geolocation (on some browsers)
- Notifications API
Local Proxy runs on your Android device and forwards localhost:<port> to your actual dev server. Your browser sees localhost, grants secure-context privileges, and your dev server doesn't need a certificate.
The app creates a local proxy server on your device that listens on a configurable port and forwards all connections to a target host. Point your browser at localhost:8080 and it transparently proxies to your real server.
- Configure target address and local port
- Start/stop proxy with a single tap
- Runs as a foreground service with persistent notification
- Real-time connection logging with color-coded log types (errors, connections, requests, info)
- Address history with quick-select and delete
- Copy/clear logs
- Handles both HTTP and HTTPS traffic
- CORS support — answers
OPTIONSpreflight requests locally and injectsAccess-Control-Allow-Origin: *into all HTTP responses - 10-second connect timeout — fails fast when the target is unreachable
- Cache-safe 502 errors — includes
Cache-Control: no-storeto prevent cache poisoning
- Enter the target address (e.g.
192.168.1.100:3000orexample.com:443) - Set the local port (default:
8080) - Tap Start Proxy
- Configure your device or other apps to use
localhost:8080as their proxy
The proxy will continue running in the background as a foreground service until you stop it.
A pre-built debug APK is available in the apk/ directory. Install it with:
adb install apk/localproxy.apk
Requires Android SDK with API level 34.
./gradlew assembleDebug
The APK will be at app/build/outputs/apk/debug/app-debug.apk.
- Android 7.0+ (API 24)
- Internet permission (granted automatically)
- Notification permission (requested at launch on Android 13+)
- Kotlin
- Jetpack Compose (Material 3)
- Kotlin Coroutines
- Android Foreground Service
Working proxy service. A standalone developer tool for enabling PWA secure-context features against a local dev server without HTTPS.
- Configuration UI (target host/port)
- Per-app proxy rules
MIT