A method for allocating an IP address that comprises the steps, performed by a server system, of:receiving a message from a client system, the message requesting allocation of an IP address, the message including a trusted identifier with the trusted identifier being an object that cannot be forged by the client system; extracting the trusted identifier from the message; counting the number of IP