Use ifconfig for get_lan_ip()

Your get_lan_ip() function was giving me <b>socket.gaierror: (-5, 'No address associated with hostname')</b>, so I rewrote it to parse data from ifconfig.  Will also be able to use weird interface names such as wlp2s0 or p5p1.