I have installed same version of iperf (2.0.5) on 2 different ubuntu systems.
But when i execute command iperf -s -p 45678
on one system and iperf -c 172.18.41.17 -p 458 -t 10
on another system. It gives me error "connect failed: No route to host".
Any help would be appreciated.
EDIT: One system is working as server but the same system is not working as client.
sometimes, the firewall service will prevent the tcp connection initiation, try by disabling the firewall service in client and server "service firewalld stop