Index: src/wp-admin/includes/class-wp-community-events.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/wp-admin/includes/class-wp-community-events.php	(revision 43650)
+++ src/wp-admin/includes/class-wp-community-events.php	(revision )
@@ -33,6 +33,15 @@
 	 */
 	protected $user_location = false;
 
+	/**
+	 * Partially anonymized IP address of the user's network.
+	 *
+	 * @since 5.0.0
+	 *
+	 * @var bool|string
+	 */
+	protected $unsafe_client_ip = false;
+
 	/**
 	 * Constructor for WP_Community_Events.
 	 *
@@ -86,6 +95,13 @@
 	 *                        success.
 	 */
 	public function get_events( $location_search = '', $timezone = '' ) {
+
+		$this->unsafe_client_ip = self::get_unsafe_client_ip();
+
+		if ( ! $this->user_location && $this->unsafe_client_ip ) {
+			$this->user_location = [ 'ip' => $this->unsafe_client_ip ];
+		}
+
 		$cached_events = $this->get_cached_events();
 
 		if ( ! $location_search && $cached_events ) {
@@ -179,7 +195,7 @@
 	protected function get_request_args( $search = '', $timezone = '' ) {
 		$args = array(
 			'number' => 5, // Get more than three in case some get trimmed out.
-			'ip'     => self::get_unsafe_client_ip(),
+			'ip'     => $this->unsafe_client_ip,
 		);
 
 		/*
