Skip to Content
Advanced FeaturesNetwork Conditions

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
FlagDefaultDescription
--latency0Added latency in milliseconds
--bandwidth0Bandwidth limit in kbps (0 = unlimited)

Clear network conditions

apxy network clear

Use 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 clear

Verify timeout handling

Ensure your app handles slow responses gracefully:

apxy network set --latency 10000 # Test that timeouts trigger correctly apxy network clear

Simulate 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 50
Last updated on