Fix calculations of local area network IPs.