update public ip addr query logic