Share Your Mac's Internet Connection with a Mobile Device via Bluetooth

Document created by DPM Admin Employee on Jul 18, 2017
Version 1Show Document
  • View in full screen mode

In some cases where other network access is blocked, TouchTest users can share a Mac computer's connection via the Internet Sharing system preference and the use of Bluetooth PAN to provide network connectivity to a mobile device. These instructions require that the user have admin rights on the Mac where network settings will be changed.

Note:  You can find a training video version of this article in the Training Videos, Test Automation, TouchTest Advanced Topics tab.

Turning On Internet Sharing on the Mac

    1. On the Mac, choose Apple menu, System Preferences, and then Sharing.

      1. On the Mac, choose Apple menu, System Preferences, and then Sharing.
      2. The Sharing system preferences screen appears. If necessary, click the lock and enter your password.
      3. Select the type of Internet connection to Share your connection from:

TIP: In most cases, this will be Ethernet. It is equally possible to share an existing WiFi connection as well, but the need to do so will be driven by the policies of the organization that owns the network connection.

      1. Finally, check internet Sharing on the left. You will get the following prompt (assuming Internet Sharing wasn't already on).

      1. Click the Start button and ensure that Internet Sharing is on.

When you do so, the Internet Sharing: On status is displayed with green indicating that the Sharing setup is completed. If you unlocked to make these changes, click the Lock to return your Mac to its locked state.

In the following sections, we'll access the shared connection via the mobile device using an iOS or Android device.

Turning on Bluetooth on the iOS Device

      1. Tap Settings on the iOS device.
      2. Turn WiFi off.
      3. Turn Bluetooth on.

In the shot below, the necessary settings are shown on an iOS Device.

Pairing the iOS Device to the Mac

      1. On the Mac, click the Bluetooth menu in the top right corner of the desktop.
      2. Select Set Up Bluetooth Device.

When you do so, the Bluetooth Setup Assistant appears and your mobile device will appear. If it doesn't appear, ensure that Bluetooth is On on the device. If necessary, toggle it off and back on.

      1. Select the device and then click Continue. The pairing screen appears with the pairing code.

      1. On the iPad, click the modal box that appears to authorize the pairing. Take note that the code is the same (otherwise you're pairing to the wrong connection!).

In the iPad's Devices list, the shared connection's computer will appear. In this case, david.

      1. In the Devices list, tap the paired device's name (e.g. david) until its status is Connected.

Turning on Bluetooth and Pairing an Android Device

The sequence is a little different on Android because the mobile device has to be made accessible to the Mac desktop as a separate step, which also initiates the pairing sequence between the Mac and the Android device.

      1. Tap Settings on the mobile device.
      2. Turn WiFi off.
      3. Turn Bluetooth on and tap it to enter Bluetooth settings.

      1. On the Bluetooth settings screen, tap the name of the desktop. For example, david. The pairing process will begin on the Android device.

The pairing process also begins on the Mac as a prompt appears on the Mac desktop.

      1. When prompted, compare the passkey on both the desktop and the Android device and approve it on both.

Accessing TouchTest Agent from a Bluetooth Connected Device

Once the network is accessible via Bluetooth on the mobile device, proceed with the usual TouchTest workflow.

For iOS: Open Safari and navigate to the TouchTest Agent URL for the CloudTest or CloudTest Lite instance. If you haven't configured a TouchTest Agent yet, refer to the TouchTest for iOS Tutorial.

For Android: Use the TouchTest Agent app access the TouchTest Agent URL for your CloudTest or CloudTest Lite instance. If you haven't installed a TouchTest Agent yet, refer to the TouchTest for Android Tutorial.