client fix for ip in if and send cmd