NETWORK DETECTION