fixed local IP detection when using DHCP assigned IP range