[#122] cleaned up the code that displays the ip address in the settings dialog