Skip to main content

mobium network

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read or set network conditions: offline, latency, bandwidth (Android)

With no flags, reports the device's network conditions. --offline turns airplane mode on and waits for the network to go, on an emulator or a real phone; --online turns it off. --latency, --download and --upload shape the traffic on an emulator, replacing any shaping set before. Everything is read back, and the end of the session puts the network back as it was.

Usage​

mobium network [flags]

Flags​

FlagTypeDefaultWhat it does
--downloadintDownload limit, kbit/s (emulator)
--latencyintMilliseconds added to every round trip (emulator)
--offlineboolTurn airplane mode on, and wait for the network to go
--onlineboolTurn airplane mode off, and wait for the network to return
--resetboolRemove the shaping and turn airplane mode off
--uploadintUpload limit, kbit/s (emulator)

And the global flags.

Examples​

Go offline​

mobium network --offline

Printed on an Android 15 emulator:

offline (airplane mode)
BeforeAfter
Before: mobium network --offline on an Android 15 emulatorAfter: mobium network --offline on an Android 15 emulator

mobium network --offline on an Android 15 emulator

A slow connection, on an emulator​

mobium network --latency 300 --download 500

Printed on an Android 15 emulator:

online; 300ms added to each round trip, download 500 kbit/s

More, from mobium network --help​

mobium network # what is in place
mobium network --offline # airplane mode, and wait to be offline
mobium network --online
mobium network --latency 300 --download 1600 --upload 750 # a slow 3G
mobium network --reset

The tool​

network calls app_network; its arguments and what every client calls it are there.