no route to host exception in android even when I use the right ip adress?

I had the same issue. The only thing I did was restarting the router. When I restarted the router I got a new IPv4 adress and than I managed to connect myself with the new adress.