How to get the ip address of the current user in drupal 8?

$ip = \Drupal::request()->getClientIp();

Similar Posts:


How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Scroll to Top