clientportiperf

How to specify iperf client port


Is there a way to force an iperf client to use a specific port number as its outgoing port instead of letting iperf on choosing a random port to use?


Solution

  • Actually neither of these answers is correct: they specify the destination port, not the client port. It seems client port is random (but consistent in one run), without a way to specify it

    Update 2019: recent versions --cport option to specify client port