Improved local network check