Manual:$wgEnableSearchContributorsByIP

Details
Whether searching for an IP address will be redirected to that IP's contributions page.

E.g. searching for "1.2.3.4" will redirect to Special:Contributions/1.2.3.4.