IT/Software/Command Line Applications/iperf3

From msgwiki
Revision as of 05:02, 28 May 2020 by Walttheboss (talk | contribs) (→‎Server)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.

General

Install

sudo apt install iperf3

Usage

Server

This is the computer that will listen for requests for speed checks.

On the server you need to start listening.

iperf3 -s

Don't forget that if UFW is up and only allowing 80, 443, and 22 it won't work.

You will need to:

sudo ufw allow 5201 && iperf3 -s -1 && sudo ufw deny 5201 && sudo ufw reload


Server Options

-1 is great as it allows for one check from a remote client and then exits the program

Client

This is the computer that will try to dial into the server to test their communication speed

On the client you need to send the request

iperf3 -c ipAddressOfServer

NOTE: If the server is on a dynamic ip and or behind a router that does not have the port forwarded then you will need zerotier setup to get to the listening computer.

Client Options

-V tell you more

-t 5 will only check five times. Usually enough

-f M will report in Megabytes. For me still a bit more readable.

For example: iperf3 -c 10.243.204.189 -V -t 5 -f M