A blog about tech & coding

Simple network performance measurements with iperf

By Marco on Fri Jan 21 20221 min read

iperf is free open-source command-line utility for measuring network performance. It is available for Linux, Windows and macOS. It can be used in both client and server mode.

Install iperf

  • Ubuntu: sudo apt-get install -y iperf
  • macOS: brew install iperf
  • Windows: download here

Server mode

To run iperf in server mode, run the following command:

iperf -s

It listens to TCP port 5001 by default. You change this by specifying the -p parameter.

If you are doing wireless network performance monitoring, then you probably want to run iperf in server mode on a device with a wired ethernet connection.

Client mode

To run iperf in client mode, run the following command:

iperf -c <SERVER_IP>

The default behavior is that the client will send and the server will receive. You can change this behavior by specifying the -R parameter.


There are plenty of options you can use. Use iperf --help to list all available options.

Below some useful options are listed.


  • -p specify the port to listen to.
    Example: to have iperf listen on port 5551, use iperf -s -p 5551


  • -t specify the duration of the test.
    Example: iperf -c <SERVER_IP> -t 10
  • -i specify the interval between reports.
    Example: iperf -c <SERVER_IP> -t 30 -i 5
  • -R reverse the test so that the server receives and the client sends.

Easy multiboot ISO USB drives with Ventoy

Often you want to create a bootable USB using an ISO file to install or upgrade Windows or Linux. Another reason to create a bootable USB could be to use a tool like GParted to manage your disk partition, or perhaps you simply want to try out a new Linux distribution. This means you often have to recreate your bootable USB. The ability to drag and drop ISO files to your USB drive and then be able to boot them would be a great solution to quickly boot an ISO file without recreating the bootable

Sat Jan 22 2022

Use Authelia for single-sign on with Caddy as a reverse proxy

Use Authelia for single-sign on with Caddy as a reverse proxy. 1. Use Traefik as a reverse proxy for your secure domains behind Caddy (proxy behind a proxy). 2. Forward your secure domains to Traefik by creating one single entry in your Caddyfile.

Tue Oct 05 2021