get_lan_ip function implemented