Test LAN transfer speed with iperf3
Measure the real throughput between two machines on your network — great for checking Wi-Fi vs Ethernet.
01Command
$ iperf3 -s # on the receiving machine; then: iperf3 -c 192.168.1.2002What it does
Internet speed tests can't tell you why copying to your NAS is slow — iperf3 measures the raw path between two of your own machines. One machine acts as the server (-s), the other as the client (-c), and the 10-second test reports sustained throughput. Add -R to test the reverse direction and -P 4 for parallel streams, which Wi-Fi usually needs to show its best.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- iperf3(1) — manual pageEvidence: iperf3 measures bandwidth between two hosts; -R reverses the direction to test download throughput from the server.
- iperf3(1) — Ubuntu manual pageEvidence: iperf3 -s runs a server and iperf3 -c host runs a client that measures achievable TCP/UDP throughput to that host.
Last verified: 2026-09-18 · Category: Network
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.