Protect spam via anonym mode

What about users with the same public IP e.g. in the same apartment or school class? Is there a possibility to find out, who created the anonym Posts?