image thumbnail

isnetavl

version 2.0.0 (8.72 KB) by Rik
Check for an internet connection by pinging one of Google's DNSes

113 Downloads

Updated 19 May 2021

From GitHub

View license on GitHub

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The Windows code for the ping call is based on isnetavl by Nishant Kumar. To allow drop-in compatibility the name was kept the same.
Because this calls the system command line, the syntax is slightly different between Unix and Windows, as is the response. This function is tested on Windows XP/7/10, Ubuntu 20.04 and MacOS 10.15.
Some organizations block ping from working, in which case an HTML fallback is used (by attempting to load the google.com homepage).
Licence: CC by-nc-sa 4.0

Cite As

Rik (2021). isnetavl (https://github.com/thrynae/isnetavl/releases/tag/v2.0.0), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with R13SP1 and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.