get() get(boolean $validate = true) : string|null Get client IP address. Parameters boolean $validate Validate IP address range. Returns string|null — Client IP address.
validate() validate(string $ip) : boolean Validate an IP address. Parameters string $ip IP address to validate. Returns boolean — True if it's a valid IP address, false otherwise.