Server IP inside the Misc settings in server.ini needs to be your global internet address, what everyone else uses to connect to your server. Localhost will resolve to 127.0.0.1.
Why should you fill it in? So you can see if someone is using a proxy via *einfo. Thats all it is for.