paulkim6 jcheng26: Fixed network connection function for compatibility with tablets