replace get_lan_ip with cross-plattform solution