IT/Software/Command Line Applications/iperf3: Difference between revisions

From msgwiki
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.
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
This is the computer that will listen for requests for speed checks.
This is the computer that will listen for requests for speed checks.


On the server you need to start listening
On the server you need to start listening.


<code>iperf3 -s</code>
<code>iperf3 -s</code>
Don't forget that if UFW is up and only allowing 80, 443, and 22 it won't work.
You will need to:
<code>sudo ufw allow 5201 && iperf3 -s -1 && sudo ufw deny 5201 && sudo ufw reload</code>


=====Server Options=====
=====Server Options=====
Line 29: Line 37:
-t 5 will only check five times.  Usually enough
-t 5 will only check five times.  Usually enough


<br />
-f M will report in Megabytes.  For me still a bit more readable.
 
For example:
For example:
*<code>iperf3 -c 10.243.204.189 -V -t 5</code>
<code>iperf3 -c 10.243.204.189 -V -t 5 -f M</code>

Latest revision as of 05:02, 28 May 2020

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