##Perl, 15 bytes
Perl, 15 bytes
print`curl to.` Run with:
perl -e 'print`curl to.`' 2> /dev/null curl outputs stuffs on STDERR, don't mind them. If the computer has access to internet, it will print a few lines of html (truthy), otherwise, it will print nothing (falsy).
Saved 1 bytes by using to. (instead of my previous b.io) thanks to @Kevin Cruijssen.