How to forward the requests to another IP when a specific IP is unreachable?