Operations 4 min read

How to Use iPerf for Accurate Server-to-Server Bandwidth Testing

This guide explains how to prepare source and target servers, install iPerf, run it in server and client modes on Windows (or Linux), and use specific commands to measure TCP bandwidth, UDP jitter, packet loss, and network latency, including required firewall and security‑group settings.

Liangxu Linux
Liangxu Linux
Liangxu Linux
How to Use iPerf for Accurate Server-to-Server Bandwidth Testing

Prerequisites

Ensure network connectivity between the source and target servers and that the target server's security‑group allows the ports used by iPerf.

Steps

Download iPerf for the source server’s operating system.

Extract the iPerf package on both the source and target servers (or another server in the same region). For Windows, the package contains the executable.

On the target server, run iPerf in server mode:

Change to the directory containing the iPerf executable: cd /d path Start iPerf listening on a chosen port (Windows commonly uses 8900, Linux often uses 22): iperf3 -p port -s On the source server, run iPerf in client mode to test TCP bandwidth: iperf3 -c target_IP -p port -t time Replace target_IP with the target server’s IP address, port with the listening port, and time with the test duration in seconds.

To test UDP jitter, packet loss, and bandwidth, add the -u flag: iperf3 -c target_IP -p port -u -t time Optionally, measure network latency with ping: ping target_IP View all iPerf options with: iperf3 -h Make sure the target server’s security‑group permits the chosen TCP/UDP port and that ICMP packets are allowed for ping tests.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

TCPLinuxWindowsnetwork testingUDPbandwidth
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.