code check network