Xxx the end of the ip, but still connect the visits of one person together

i often see that a recurring person is tracked as a new person.
also if the person uses the same IP, …
this visits could be collected and summed up together
only by giving the user an anonymous ID and set a cookie with the same ID.
this is a math game if you have same browser, IP, cookie,
settings it could be the same person also if one parameter is changed.

thanks for a good discussion and improvements