script that gets LAN IP