Network Conditions
Simulate poor network conditions to test how your app handles slow connections, timeouts, and retry logic.
Web UI
Open Network from the Modify group. The page provides:
- Latency input field — added delay in milliseconds for all proxied requests
- Bandwidth input field — bandwidth limit in kbps (0 = unlimited)
- Clear button — remove all network conditions and restore normal speed
Changes apply immediately to all traffic flowing through the proxy.
CLI
Set network conditions
# Add 2 second latency
apxy network set --latency 2000
# Throttle bandwidth to 100 kbps
apxy network set --bandwidth 100
# Combine both
apxy network set --latency 500 --bandwidth 50| Flag | Default | Description |
|---|---|---|
--latency | 0 | Added latency in milliseconds |
--bandwidth | 0 | Bandwidth limit in kbps (0 = unlimited) |
Clear network conditions
apxy network clearUse Cases
Test loading states
Add latency to see how your app renders loading spinners and skeleton screens:
apxy network set --latency 3000
# Test UI loading states
apxy network clearVerify timeout handling
Ensure your app handles slow responses gracefully:
apxy network set --latency 10000
# Test that timeouts trigger correctly
apxy network clearSimulate mobile networks
Test the experience on slow connections:
# Simulate 3G connection
apxy network set --latency 200 --bandwidth 750
# Simulate slow 2G
apxy network set --latency 500 --bandwidth 50Last updated on