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

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

70

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