iperf error: connect failed: no route to host

Nikita picture Nikita · Jul 18, 2017 · Viewed 18k times · Source

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.

Answer

user2002885 picture user2002885 · Aug 13, 2018

sometimes, the firewall service will prevent the tcp connection initiation, try by disabling the firewall service in client and server "service firewalld stop