To get Client IP Address, $ip = \Drupal::request()->getClientIp(); Log in to post comments Category Node