How QR Codes Work
QR codes encode the complete WireGuard configuration as a scannable image that mobile apps can read directly.What’s Included
Each QR code contains:The QR code is a complete, self-contained configuration. No additional setup is required on the mobile device after scanning.
Displaying QR Codes
Access client QR codes through the web interface:QR Code Dialog Features
- High Contrast Background: White background ensures maximum readability
- Optimal Size: Automatically scaled for display
- SVG Format: Crisp rendering at any size
- Clean Display: No distracting elements around the code
Scanning QR Codes
Use the official WireGuard mobile apps to scan configuration QR codes.- iOS
- Android
QR Code Generation
QR codes are generated server-side as SVG images for optimal quality.Technical Details
Format: SVG (Scalable Vector Graphics)- Vector-based for perfect scaling
- Small file size
- Browser-native rendering
/api/client/{clientId}/qrcode.svg
- Requires authentication
- Permission-checked access
- Real-time generation
- Tolerates up to 30% damage
- Reliable scanning in various conditions
- Robust against display artifacts
Best Practices
Display Settings
- Screen Brightness: Increase brightness for better scanning
- Full Screen: Use the QR dialog for distraction-free display
- Stable Position: Hold the screen steady while scanning
- Clean Screen: Wipe your screen for clearer display
Security Considerations
Screen Recording Protection
Screen Recording Protection
Be aware that QR codes can be captured through:
- Screenshots
- Screen recording software
- Camera photos
- Screen sharing sessions
Physical Security
Physical Security
When scanning in public:
- Shield your screen from onlookers
- Use privacy screen protectors
- Scan quickly and close the dialog
- Be aware of security cameras
Disposal
Disposal
If you need to revoke access:
- Delete the client configuration
- QR codes automatically become invalid
- Create new clients if credentials are compromised
Alternative Configuration Methods
If QR code scanning isn’t working, use these alternatives:Configuration File Download
- Click the download icon on the client card
- Transfer the
.conffile to your mobile device - Import the file in the WireGuard app
One-Time Links
Generate a temporary shareable link:- Click the link icon on the client card
- Share the generated URL with the device
- Open the link on the mobile device
- Download and import the configuration
One-time links expire after a set time period for security. See the One-Time Links documentation for details.
Manual Entry
- Click “View Configuration” on the client card
- Copy the configuration text
- Create a new tunnel manually in the WireGuard app
- Paste the configuration
Troubleshooting
QR Code Won’t Scan
QR Code Not Displaying
- Check Permissions: Ensure your user account has view access to the client
- Browser Compatibility: Use a modern browser with SVG support
- Network Issues: Verify connection to the WireGuard Easy server
- Server Status: Confirm the WireGuard service is running
Configuration Import Fails
- Invalid Configuration: Regenerate the QR code and try again
- App Permissions: Grant necessary permissions to the WireGuard app
- Duplicate Name: Tunnel name might conflict with existing configuration
- Version Compatibility: Ensure WireGuard app and server versions are compatible
Advanced Usage
Batch Setup
For setting up multiple devices:- Open QR codes in separate browser tabs
- Scan each QR code sequentially
- Name each tunnel distinctly (e.g., “Home VPN - iPhone”, “Home VPN - iPad”)
AmneziaWG Support
If using AmneziaWG obfuscation:Custom QR Code Size
The QR code size is optimized for standard displays. For presentations or special use cases, you can:- Screenshot the QR dialog
- Use image editing software to resize
- Ensure error correction handles any quality loss
API Access
For automated workflows, access QR codes programmatically:- Automated device provisioning
- Bulk configuration deployment
- Integration with MDM systems
- Custom onboarding workflows