Improve server IP/hostname handling.
update version