detect correct SOCKS host IP to send