internet_connection_checker
internet_connection_checker copied to clipboard
SocketException (SocketException: Connection failed (OS Error: Network is unreachable, errno = 101), address = 2620:0:ccc::2, port = 53
Shows this error.. has anyone gone through this
static final InternetConnectionChecker _instance = InternetConnectionChecker.createInstance();
/// Ping a single address. See [AddressCheckOptions] for /// info on the accepted argument. Future<AddressCheckResult> isHostReachable( AddressCheckOptions options, ) async { Socket? sock; try { sock = await Socket.connect(