When a file copy to my server feels slow, I want to know whether the network or the disks are to blame. iperf3 answers that in about ten seconds, and this guide shows how to read the numbers.
- Time
- 6 min
- Steps
- 6
- Updated
- 24 Nov 2026
You will learn
- Start the server
- Run the client
- Test both directions
- Test UDP and packet loss
- Reading the numbers
What you need
Two devices on the same network, both with iperf3 installed (sudo apt install iperf3 on Ubuntu or Debian, brew install iperf3 on a Mac). One runs as server and one as client. iperf3 sends data over the network from memory, so the disks play no part.
The screenshots in this guide come from my own tests. The server ran on my VPS and the client on my Mac, connected over Tailscale, so the numbers describe that path and not my home network. The commands are the same for two devices in one room, and the reading of the output is too.
Step 1 of 6: Start the server
On the device you want to test towards, for example your server:
iperf3 -s
It listens on port 5201 and waits. Stop it with Ctrl+C when you are done, because it accepts anyone who can reach it. You can also add -1, which makes the server quit after one test. I use that on a machine that is reachable from outside, so I cannot forget to turn it off.
If the server has several network interfaces, bind it to one with -B and the address of that interface. I did that to keep the test on the Tailscale address and off the public one.

Step 2 of 6: Run the client
On your laptop or desktop, use the server’s IP address:
iperf3 -c 192.168.1.10
The client prints the speed for every second and a summary at the end. The default test runs for ten seconds; -t 30 makes it longer, which helps when you suspect a speed that comes and goes.

Look at the last two lines first. The line that ends in sender is the speed at which the client pushed data out, and receiver is what arrived at the other side. They should be almost the same. The column called Retr counts retransmitted packets; a few at the start of a test are normal, but a number that keeps growing means the link is losing packets. The Cwnd column shows the window TCP allows itself, and it is mostly useful to the people who tune networks for a living.
Step 3 of 6: Test both directions
By default the client sends. Add -R to make the server send instead, and -P 4 to use four parallel streams:
iperf3 -c 192.168.1.10 -R
iperf3 -c 192.168.1.10 -P 4
A big difference between the two directions points at a problem on one side, such as a network card or a cable that negotiated a lower speed.
My own numbers show this well. Sending from the Mac gave about 326 Mbit/s. With -R, so receiving on the Mac, the same link gave about 867 Mbit/s. Nothing is broken. My internet connection seems to have a much slower upload than download, and the test passes through it in one direction or the other.

-R the server sends. The speed is steady at about 880 Mbit/s and the Retr column shows zero.The parallel test shows something else. A single TCP stream sometimes cannot fill a fast link, because it waits for acknowledgements. Four streams at the same time usually fill it better. In my test the four streams together reached about 440 Mbit/s, higher than the 326 Mbit/s of the single stream, and each stream got between 80 and 151 Mbit/s. If one stream is slow and four are fast, the link is fine and a single connection is the limit. That is also what a file copy over SMB or NFS is: usually one stream.

Step 4 of 6: Test UDP and packet loss
TCP hides packet loss by sending lost packets again. If you care about video calls, streaming or games, UDP shows the loss directly. You choose the speed yourself with -b:
iperf3 -c 192.168.1.10 -u -b 100M
The summary then has two extra columns: jitter, which is how much the arrival time of packets varies, and lost datagrams as a percentage. In my test 100 Mbit/s went through with zero lost datagrams and a jitter of 0.133 ms, which is what you want to see. Lost datagrams above one percent on a wired link deserve a closer look at the cable and the switch port.

Step 5 of 6: Reading the numbers
On a gigabit wired link you should see roughly 900 to 940 Mbit/s. Much lower on a cable points at the cable, the switch port or the network card. On Wi-Fi the number depends on distance and walls, so run the test in the room where you actually work. If iperf3 is fast but your file copy is slow, the network is fine and you should look at the disks or the sharing protocol.
Run the test a few times and at different moments. A single result can be a lucky or unlucky second. My first test in the screenshots started at 300 Mbit/s, climbed to over 400 and then dropped to around 250 halfway through, so I would never trust one run of ten seconds to describe a line.
Step 6 of 6: When the client cannot connect
If the client cannot connect, check that the server is running, that the IP address is right and that a firewall allows port 5201. Use -p to pick another port on both sides.

With the server stopped, the error was “Connection refused”, which means the address answers but nothing listens on the port. If the message is a timeout instead, a firewall or a wrong address is more likely, because nothing answered at all.
Further reading: iperf3 documentation
