Overview
Wireless debugging allows you to connect Android devices to APK Extractor over WiFi without a USB cable. This feature requires Android 11 or higher and both devices must be on the same network.Wireless debugging uses ADB over TCP/IP with TLS encryption and pairing codes for secure connections.
Requirements
Android 11+
Wireless debugging feature is built into Android 11 and newer
Same Network
PC and Android device must be on the same WiFi network
Developer Options
Developer options must be enabled on the device
APK Extractor
Web interface or CLI with ADB configured
Enabling Developer Options
If you haven’t enabled Developer Options yet:Tap Build Number
Find Build number and tap it 7 timesYou’ll see a message: “You are now a developer!”
Wireless Debugging Setup
Method 1: Using APK Extractor Web Interface
Enable wireless debugging on Android
On your Android device:
- Go to Settings → Developer options
- Enable Wireless debugging toggle
- Tap Wireless debugging to open its settings
Get pairing information
Tap Pair device with pairing codeYou’ll see a dialog with:
- WiFi pairing code: 6-digit number (e.g.,
123456) - IP address & Port: e.g.,
192.168.1.100:37891
Open web interface
In APK Extractor web interface:
- Click the ”+” button or “Add Device”
- Select the “Wireless Debugging” tab
- Enter the pairing information:
- IP Address:
192.168.1.100 - Pairing Port:
37891 - Pairing Code:
123456
- IP Address:
Pair the device
Click “Pair”You’ll see: “Successfully paired to 192.168.1.100:37891”
Pairing is now complete! You only need to do this once per device.
Get connection port
Back on the Android device, look at the Wireless debugging screen.At the top, you’ll see:
- Device name
- IP address & port: e.g.,
192.168.1.100:33445
This is the connection port (different from the pairing port). It’s persistent and doesn’t expire as quickly.
Method 2: Using CLI
Method 3: Manual ADB Commands
For advanced users:Understanding Ports
Wireless debugging uses two different ports:Pairing Port
Temporary port for initial pairing with code
- Used once during pairing
- Expires after a few minutes
- Format:
192.168.1.100:37891 - Shown in “Pair device with pairing code” dialog
Connection Port
Persistent port for actual connection
- Used every time you connect
- Changes when wireless debugging is toggled or device reboots
- Format:
192.168.1.100:33445 - Shown at top of “Wireless debugging” screen
Port Workflow
Automatic Saving
When you connect a device wirelessly, APK Extractor automatically saves it todevices.json:
The device label is auto-detected (brand + model). You can change it later using custom device naming.
Quick Reconnection
For saved devices, you don’t need to pair again:Web Interface
- Click ”+” or “Add Device”
- Go to “Saved Devices” tab
- Click “Connect” next to the device
CLI
Main menu → [3] Dispositivos guardados → [C] Conectar:Port Expiration & Re-pairing
Connection ports change when:- Device reboots
- Wireless debugging is toggled off/on
- Device switches WiFi networks
- Long period of inactivity
- IP is preloaded - no need to type it again
- Get new pairing port + code from device
- Enter the new pairing port and code
- Get new connection port from device
- Enter the new connection port
- Connection restored and port updated in
devices.json
mDNS Auto-Discovery
Android devices advertise wireless debugging via mDNS (multicast DNS) using the service:- Resolves IP address from the mDNS hostname
- Fetches device info (brand, model) using
getprop - Displays in device list with wireless icon
mDNS discovery is automatic - no manual pairing needed if your network supports mDNS/Bonjour.
Some corporate or public WiFi networks block mDNS. If auto-discovery doesn’t work, use manual pairing instead.
WiFi Debugging API
The web interface uses these API endpoints:Pair Device
Connect Device
Security Considerations
TLS Encryption
All wireless debugging traffic is encrypted with TLS
Pairing Codes
6-digit codes prevent unauthorized connections
Same Network Only
Devices must be on the same local network (not internet-accessible)
Disable When Not Needed
Turn off wireless debugging to prevent unauthorized access
For remote connections over the internet, see the Remote Connection guide using Tailscale VPN.
Troubleshooting
Pairing fails: 'failed to connect'
Pairing fails: 'failed to connect'
Causes:
- Wrong IP address
- Wrong pairing port
- Pairing code expired
- Firewall blocking
- Verify IP and port exactly match the device screen
- Get a fresh pairing code (tap “Pair device with pairing code” again)
- Disable firewall temporarily to test
- Ensure PC and device are on the same WiFi network
Pairing succeeds but connection fails
Pairing succeeds but connection fails
You’re using the pairing port instead of the connection port.Solution: Look at the main “Wireless debugging” screen (not the pairing dialog) for the connection port.
Device disconnects after a few minutes
Device disconnects after a few minutes
Causes:
- WiFi power saving
- Weak signal
- Network switching (WiFi ↔ mobile data)
- Disable battery optimization for system services
- Move device closer to WiFi router
- Disable “Switch to mobile data automatically”
- Use USB for long operations
Can't enable Wireless debugging
Can't enable Wireless debugging
- Android 10 or older: Feature not available, use USB
- Developer options disabled: Re-enable by tapping Build number 7 times
- Airplane mode: Disable airplane mode
- WiFi off: Enable WiFi
mDNS device not appearing
mDNS device not appearing
- Network blocks mDNS: Use manual pairing
- Device not advertising: Restart wireless debugging
- Firewall: Allow mDNS (UDP port 5353)
- Router settings: Enable mDNS/Bonjour forwarding
Connection port keeps changing
Connection port keeps changing
This is normal behavior. The port changes when:
- Device reboots
- Wireless debugging toggled
- WiFi network changes
Best Practices
Use static IP
Configure your router to assign a static IP to your Android device’s MAC address. This prevents IP changes.
Keep wireless debugging enabled
Leave it enabled only when actively using it. Disable when done for security.
Save devices
Let APK Extractor save devices automatically. You’ll thank yourself later when reconnecting is one click.
Next Steps
Remote Connection
Connect to devices over the internet using Tailscale
Device Management
Manage multiple WiFi and USB devices
Saved Devices
Understand devices.json format
Extracting APKs
Extract APKs over WiFi
Wireless API
API reference for pairing and connection
