anchor.diff:  	// Actual //host:port the current web request used, without http/https.
   	$currentRequestServer = preg_replace( '#^[^\/]+#', '', $detectedServer );
   
  -	$currentRequestHostAndPort = IP::splitHostAndPort( $currentRequestServer );
  +	$currentRequestHostAndPort = \Wikimedia\IPUtils::splitHostAndPort( $currentRequestServer );
   
   	if ( $currentRequestHostAndPort === false ) {
   		// Failure to parse current request, change nothing
  
positive.code: 		$currentPort = $currentRequestHostAndPort[1];
  
  		if ( $currentPort !== false ) {
  			$combined = IP::combineHostAndPort( $canonicalHost, $currentPort );
  			$wgConfWgServer = $combined;
  		} else {
  			// currentPort false just means we were accessed on default port
  
negative.code: 		// URL this wgConf is about
  		$protocolRelativeCanonical = $wgConfWgServer;
  
  		$canonicalHostAndPort = \Wikimedia\IPUtils::splitHostAndPort( $protocolRelativeCanonical );
  
  		if ( $canonicalHostAndPort === false ) {
  			// Failure to parse this particular wiki, skip it;
  