How to Check Your Local Network Speed in Ubuntu 24.04

The local network speed is the data transfer rate between two devices over the same network (LAN). If you are a user of Ubuntu 24.04 and want to check your local network speed, you are in the right place!

How to Check Your Local Network Speed in Ubuntu 24.04?

We recommend following these methods to check your local network speed in Ubuntu 24.04.

Method 1: Using the iperf3 Utility

iperf3 is a cross-platform command-line utility that measures the maximum bandwidth between two hosts.

To install iperf3 on Ubuntu 24.04, run:

sudo apt install iperf3 -y
installing iperf3 on Ubuntu 24.04

Next trigger the iperf3 on the server machine with:

iperf3 -s
starting iperf3 on server on ubuntu 24.04

Now, initiate the client session to view the network performance using:

iperf3 -c 192.168.1.13
initiating the iperf3 client session on ubuntu 24.04

From the above output, the Bitrate column indicates the local network speed against each iteration and shows the averaged data.

To run iperf3 in server mode, execute:

iperf3 -s
viewing iperf3 results on server on ubuntu 24.04

Note: You can find your system’s IP using the “ip a” command or following our guide to finding your IP address in Ubuntu 24.04.

Method 2: Using the netcat Command

netcat” or “nc” is a versatile networking command-line tool measuring the data transfer speed to test the network speed.

To install it, execute:

sudo apt install netcat-traditional
installing netcat on ubuntu 24.04

Next, on the client side set up a network listener on port “5001” and redirect all incoming data to “/dev/null” to discard it:

nc -vvlnp 5001 > /dev/null
setting up client listener port for netcat in ubuntu 24.04

Following that, let’s test the local network speed:

dd if=/dev/zero bs=2M count=1K | nc -vvn 192.168.1.13 5001
checking local network speed using dd and netcat command in ubuntu 24.04

Note: The output is in the form of MB/s. However, to get it in the Mbps, multiply the number by 8. For instance, “49MB/s×8=392Mbps”.

Method 3: Using the dd Command

You can use the “dd” command to measure the local network speed as it works by writing and reading the data.

Below is an example of using the “dd” command with the “ssh” to check the local network speed on Ubuntu 24.04:

dd if=/dev/zero bs=2M count=1K | ssh ali@192.168.1.13 'dd of=/dev/null'
Using dd to check local network speed on ubuntu 24.04

The above output shows your local network’s read and write speeds.

Note: If you haven’t installed SSH, run “sudo apt install openssh-server”. Then, allow firewall access with the “sudo ufw allow openssh”.

Method 4: Using the nuttcp Command

The “nuttcp” command transmits the data between two devices to measure your local network speed.

To install the “nuttcp” on Ubuntu 24.04. run:

sudo apt install nuttcp
installing nuttcp on Ubuntu 24.04

Now, initiate the nuttcp utility on the client side via:

nuttcp -S
startting nuttcp on client on ubuntu 24.04

Once the client side is open for connection, view the average local network speed using:

nuttcp -T10 192.168.1.13
viewing average local network speed using nuttcp on ubuntu 24.04

Note: You can specify the time frame by exchanging “-T10” with the “-TSpecifiedTime”.

Additionally, if you are still on Ubuntu 22.04, follow our detailed guide to upgrade to Ubuntu 24.04.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top