Once the client finishes the process is automatically closed. I would like to do the same thing in the server side, because I want to automatize some processes, but the server side finishes but remains open.
To stop the iPerf server process, press CTRL + c .
In iperf3, you can just give the -1 parameter and it will close automatically. It only accepts one connection and it will exit when that is finished. Show activity on this post. In server side of iperf there is no -t option for time limitting.
The default test duration of Iperf is 10 seconds. You can override the default with the -t switch followed by the time in seconds the test should last.
use iperf option -t
. So that it will stop after t
seconds. Default iperf client timeout is 10 seconds. so it stops after that.
Try. Here both will stop after 10
seconds.
Server: iperf -s -t 10
Client: iperf -c <ipaddress> -t 10
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With