amend sock_client ip parsing