Thread:Project:Support desk/MediaWiki Running Behind Proxy "Unable to determine IP" Error/reply (2)

You should look at $wgUsePrivateIPs which will probably be what you really want.