Worked on checking for network connectivity

Not sure if it's working though. I think it might be a problem with my
machine. I check for connectivity by using Windows.Network.Connectivty
and I check some return value. If it's 71, then I have wireless
connectivity and if it's 6 then I have ethernet connectivity. My machine
doesn't even have an ethernet port and it keeps returning 6, which
doesn't make much sense. I should try this commit on my laptop and see
what happens.