Detecting connection attempt