I am trying to measure the network bandwidth between two cloud virtual machines, using iperf. Machine A runs
iperf -s
and machine B
iperf -c <ip of machine A>.
This doesn't work, while executing
iperf -c localhost
in machine A works fine. The firewall is not the problem as I have opened the port needed(5001 , using sudo ufw allow 5001).
Also, I would like to note that the whole process works flawlessly on machines running on another cloud provider.