finish the ip counter