Chapter 15

Networking with OS X

If you have multiple computers in your home or office, you can set up these computers as a network to share information and equipment. This chapter gives an overview of networking concepts and shows you how to connect to a network, how to work with the other computers on your network, and how to share your Mac’s resources with other network users.

9781118683231-co1501.tif

Understanding Networking

Connect a Bluetooth Device

Connect to a Wireless Network

Connect to a Network Resource

Change Your Password

Turn On File and Printer Sharing

Share a Folder

Share a Printer

Add a Shared Printer

Share a Screen with Another Mac

View OS X on Your TV

Understanding Networking

A network is a collection of computers and other devices that are connected. You can create a network using cable hookups, wireless hookups, or a combination of the two. In both cases, you need special networking equipment to make the connections.

A network gives you a number of advantages. For example, once you have two or more computers connected on a network, those computers can share documents, photos, and other files. You can also use a network to share equipment, such as printers and optical drives.

Share Files

Networked computers are connected to each other, and so they can exchange files with each other along the connection. This enables people to share information and to collaborate on projects. OS X includes built-in security, so that you can control what files you share with other people.

9781118683231-fg1501.tif

Share Equipment

Computers connected over a network can share some types of equipment. For example, one computer can share its printer, which enables other network users to send their documents to that printer. Networked computers can also share hard drives, optical drives, and document scanners.

9781118683231-fg1502.tif

Wired Networking

Network Cable

A network cable is a special cable designed for exchanging information. One end of the cable plugs into the Mac’s network port, if it has one. The other end plugs into a network connection point, which is usually the network’s router (discussed next), but it could also be a switch, hub, or even another Mac. Information, shared files, and other network data travel through the network cables.

9781118683231-fg1503.tif

Router

A router is a central connection point for all of the computers on the wired portion of the network. For each computer, you run a network cable from the Mac’s network port to a port in the router. When network data travels from computer A to computer B, it first goes out through computer A’s network port, along its network cable, and into the router. Then the router passes the data along computer B’s network cable and into its network port.

9781118683231-fg1504.tif

Wireless Networking

Wireless Connections

A wireless network is a collection of two or more computers that communicate with each other using radio signals instead of cable. The most common wireless technology is Wi-Fi (rhymes with hi-fi) or 802.11. Each of the four main types (802.11ac, 802.11b, 802.11g, and 802.11n) has its own range and speed limits. The other common wireless technology is Bluetooth, which enables devices to communicate directly with each other.

9781118683231-fg1505.tif

Wireless Access Point

A wireless access point (WAP) is a device that receives and transmits signals from wireless computers to form a wireless network. Many WAPs also accept wired connections, which enables both wired and wireless computers to form a network. If your network has a broadband modem, you can connect the modem to a type of WAP called a wireless gateway, which includes a built-in router that extends Internet access to all of the computers on the network.

9781118683231-fg1506.tif

Connect a Bluetooth Device

You can make wireless connections to devices such as mice, keyboards, headsets, and cell phones by using the Bluetooth networking technology. The networking tasks that you learn about in the rest of this chapter require special equipment to connect your computers and devices. However, with Bluetooth devices, the networking is built in, so no extra equipment is needed. For Bluetooth connections to work, your Mac must support Bluetooth (all newer Macs do) and your device must be Bluetooth-enabled. Also, your Mac and the Bluetooth device must remain within about 30 feet of each other.

Connect a Bluetooth Device

Connect a Bluetooth Device without a Passkey

9781118683231-fg1507.eps

001 Click System Preferences (9781118683231-ma006.tif) in the Dock.

002 Click Bluetooth.

The Bluetooth preferences appear.

9781118683231-fg1508.eps

003 Click Turn Bluetooth On.

OS X activates Bluetooth and makes your Mac discoverable.

004 Perform whatever steps are necessary to make your Bluetooth device discoverable.

For example, if you are connecting a Bluetooth mouse, the device often has a separate switch or button that makes the mouse discoverable, so you need to turn on that switch or press that button.

9781118683231-fg1509.eps

A A list of the available Bluetooth devices appears here.

005 Click Pair beside the Bluetooth device you want to connect.

006 Perform the steps required to pair your Mac and your device.

9781118683231-fg1510.eps

B Your Mac connects with the device.

A Bluetooth mouse and a Bluetooth headset do not require any extra pairing steps, although with a headset you must configure OS X to use it for sound output. However, pairing devices such as a Bluetooth keyboard and a Bluetooth cellphone does require an extra step. In most cases, pairing is accomplished by your Mac generating a 6- or 8-digit passkey that you must then type into the Bluetooth device (assuming that it has some kind of keypad). In other cases, the device comes with a default passkey that you must type into your Mac to set up the pairing.

Connect a Bluetooth Device with a Passkey

001 Turn the device on, if required.

002 Turn on the switch that makes the device discoverable, if required.

003 Follow steps 1 and 2 from earlier in this section to display a list of available Bluetooth devices.

9781118683231-fg1511.eps

004 Click Pair beside your Bluetooth device.

The Bluetooth Setup Assistant displays a passkey.

9781118683231-fg1512.eps

005 Use the Bluetooth device to type the displayed passkey.

006 Press ret.eps.

OS X connects to the device. If you see the Keyboard Setup Assistant, follow the on-screen instructions to set up the keyboard for use with your Mac.

Listen to Audio Through Bluetooth Headphones

9781118683231-fg1513.eps

001 Click System Preferences (9781118683231-ma006.tif) in the Dock.

002 Click Sound.

The Sound preferences appear.

9781118683231-fg1514.eps

003 Click Output.

004 Click the Bluetooth headphones.

Connect to a Wireless Network

All the latest Macs have built-in wireless networking capability that you can use to connect to a wireless network that is within range. This could be a network in your home, your office, or a public location such as a coffee shop. In most cases, this also gives you access to the wireless network’s Internet connection.

Most wireless networks have security turned on, which means you must know the correct password to connect to the network. However, after you connect to the network once, your Mac remembers the password and connects automatically the next time the network comes within range.

Connect to a Wireless Network

9781118683231-fg1516.eps

001 Click the Wi-Fi status icon (9781118683231-ma127.tif) in the menu bar.

Your Mac locates the wireless networks within range of your Mac.

9781118683231-fg1517.eps

A The available networks appear in the menu.

B Networks with a Lock icon (9781118683231-ma128.tif) require a password to join.

002 Click the wireless network you want to join.

If the wireless network is secure, your Mac prompts you for the password.

9781118683231-fg1518.eps

003 Use the Password text box to type the network password.

C If the password is very long and you are sure no one can see your screen, you can click Show password (9781118683231-ma001.tif changes to 9781118683231-ma002.tif) to see the actual characters instead of dots. This helps to ensure you type the password correctly.

004 Click Join.

Your Mac connects to the wireless network.

9781118683231-fg1519.eps

D The Wi-Fi status icon changes from 9781118683231-ma127.tif to 9781118683231-ma129.tif to indicate the connection.

Connect to a Network Resource

To see what other network users have shared on the network, you can use the Network folder to view the other computers and then connect to them to see their shared resources. To get full access to a Mac’s shared resources, you must connect with a username and password for an administrator account on that Mac. To get access to the resources that have been shared by a particular user, you must connect with that user’s name and password. Note, too, that your Mac can also connect to the resources shared by Windows computers.

Connect to a Network Resource

9781118683231-fg1520.eps

001 Click the desktop.

002 Click Go.

003 Click Network.

Note: Another way to run the Network command is to press shift.eps+cmd.eps+k.eps.

The Network folder appears.

9781118683231-fg1521.eps

A Each icon represents a computer on your local network.

004 Double-click the computer to which you want to connect.

Your Mac connects to the network computer using the Guest account.

Note: The Guest account has only limited access to the network computer.

9781118683231-fg1522.eps

005 Click Connect As.

Your Mac prompts you to connect to the network computer.

9781118683231-fg1523.eps

006 Click Registered User (9781118683231-ma003.tif changes to 9781118683231-ma004.tif).

007 Type the username of an account on the network computer.

008 Type the password of the account.

009 To store the account data, click Remember this password in my keychain (9781118683231-ma001.tif changes to 9781118683231-ma002.tif).

010 Click Connect.

Your Mac connects to the computer and shows the shared resources that you can access.

9781118683231-fg1524.eps

011 When you are done, click Disconnect.

Change Your Password

You can make your Mac more secure by changing your password. For example, if you turn on file sharing, as described in the next section, you can configure each shared folder so that only someone who knows your password can get full access to that folder. Similarly, you should change your password if other network users know your current password and you no longer want them to have access to your shared folders. Finally, you should also change your password if you feel that your current password is not secure enough. See the Tip to learn how to create a secure password.

Change Your Password

9781118683231-fg1526.eps

001 Click System Preferences (9781118683231-ma006.tif).

002 Click Users & Groups.

The Users & Groups preferences appear.

9781118683231-fg1527.eps

A Your user account is selected automatically.

B If you want to work with a different user account, you must click the Lock icon (9781118683231-ma068.tif) and then type your administrator password (9781118683231-ma068.tif changes to 9781118683231-ma132.tif).

003 Click Change Password.

The Change Password dialog appears.

9781118683231-fg1528.eps

004 Type your current password.

005 Type your new password.

006 Retype the new password.

9781118683231-fg1529.eps

007 Type a hint that OS X will display if you forget the password.

Note: Construct the hint in such a way that it makes it easy for you to recall the password, but hard for a potential snoop to guess the password.

008 Click Change Password.

OS X changes your password.

Turn On File and Printer Sharing

You can share your files with other network users. This enables those users to access your files over the network. Before you can share these resources, you must turn on your Mac’s file-sharing feature. To learn how to share a particular folder, See the section Share a Folder later in this chapter.

You can also share your printer with other network users. This enables those users to send print jobs to your printer over the network. Before this can happen, you must turn on your Mac’s printer-sharing feature. To learn how to share a particular printer, See the section Share a Printer later in this chapter.

Turn On File and Printer Sharing

9781118683231-fg1531.eps

001 Click 9781118683231-ma007.tif.

002 Click System Preferences.

The System Preferences window appears.

9781118683231-fg1532.eps

003 Click Sharing.

The Sharing preferences appear.

9781118683231-fg1533.eps

004 Click the File Sharing check box (9781118683231-ma001.tif changes to 9781118683231-ma002.tif).

You can now share your folders, as described in the next section.

9781118683231-fg1534.eps

005 Click the Printer Sharing check box (9781118683231-ma001.tif changes to 9781118683231-ma002.tif).

You can now share your printers, as described later in this chapter.

Share a Folder

You can share one of your folders on the network, enabling other network users to view and optionally edit the files you place in that folder. OS X automatically shares your user account’s Public folder, but you can share other folders. Sharing a folder enables you to work on a file with other people without having to send them a copy of the file. OS X gives you complete control over how people access your shared folder. For example, you can allow users to make changes to the folder, or you can prevent changes.

Share a Folder

9781118683231-fg1535.eps

001 Open the Sharing preferences.

Note: See the section Turn On File and Printer Sharing to learn how to display the Sharing preferences.

002 Click File Sharing.

Note: Be sure to click the File Sharing text, not the check box. This ensures that you do not accidentally uncheck the check box.

9781118683231-fg1536.eps

003 Under Shared Folders, click 9781118683231-ma094.tif.

An Open dialog appears.

9781118683231-fg1537.eps

004 Click the folder you want to share.

005 Click Add.

Your Mac begins sharing the folder.

Note: You can also click and drag a folder from a Finder window and drop it on the list of shared folders.

9781118683231-fg1538.eps

A The folder appears in the Shared Folders list.

006 Click the folder.

007 For the Everyone user, click the current permission and then click the permission you want to assign.

B The current permission is indicated with a check mark (9781118683231-ma024.tif). OS X assigns the permission to the user.

C You can also click 9781118683231-ma094.tif under the Users list to add more users.

Share a Printer

If you have a printer connected to your Mac, you can share the printer with the network. This enables other network users to send their documents to your printer. Sharing a printer saves you money because you only have to purchase one printer for all the computers on your network. Sharing a printer also saves you time because you only have to install, configure, and maintain a single printer for everyone on your network. See the section Add a Shared Printer to learn how to configure OS X to use a shared network printer.

Share a Printer

9781118683231-fg1539.eps

001 Click 9781118683231-ma007.tif.

002 Click System Preferences.

Note: You can also click System Preferences (9781118683231-ma006.tif) in the Dock.

The System Preferences window appears.

9781118683231-fg1540.eps

003 Click Sharing.

9781118683231-fg1541.eps

004 Click Printer Sharing.

Note: Be sure to click the Printer Sharing text, not the check box. This ensures that you do not accidentally uncheck the check box.

9781118683231-fg1542.eps

005 Click the check box beside the printer you want to share (9781118683231-ma001.tif changes to 9781118683231-ma002.tif).

Add a Shared Printer

If another computer on your network has an attached printer that has been shared with the network, you can add that shared printer to your Mac. This enables you to send a document from your Mac to that shared printer, which means you can print your documents without having a printer attached directly to your Mac. Before you can print to a shared network printer, you must add the shared printer to OS X.

Add a Shared Printer

9781118683231-fg1544.eps

001 Click System Preferences (9781118683231-ma006.tif) in the Dock.

The System Preferences window appears.

002 Click Printers & Scanners.

9781118683231-fg1545.eps

003 Click 9781118683231-ma094.tif.

Note: If OS X displays a list of nearby printers, click the printer you want to add and skip the rest of these steps.

9781118683231-fg1546.eps

004 Click Default.

005 Click the shared printer.

A Look for the word Shared in the printer description.

006 Click Add.

Note: If OS X alerts you that it must install software for the printer, click Download & Install.

9781118683231-fg1547.eps

B OS X adds the printer.

Share a Screen with Another Mac

You can share your Mac’s screen with other computers on your network. Sharing your screen means that everything displayed on your Mac’s desktop is also displayed inside a window on the other user’s Mac. This is useful for demonstrating something on the screen, because the other user can watch the demonstration without having to be physically present in front of your Mac.

Once you share your screen, the other user can also work with your Mac just as though he or she is sitting in front of it. This is useful if that person needs to troubleshoot a problem.

Share a Screen with Another Mac

Turn On Screen Sharing

9781118683231-fg1548.eps

001 Open the Sharing preferences.

Note: See the section Turn On File and Printer Sharing to learn how to display and unlock the Sharing preferences.

The Sharing preferences appear.

002 Click Screen Sharing (9781118683231-ma001.tif changes to 9781118683231-ma002.tif).

OS X configures the desktop for sharing.

View a Shared Screen

9781118683231-fg1549.eps

001 On another Mac, click Finder (9781118683231-ma012.tif).

002 In the sidebar, click the Mac with the shared screen.

003 Click Share Screen.

OS X prompts you to log in to the remote computer.

9781118683231-fg1550.eps

004 Type the password for an administrative account on the Mac that is sharing the screen.

005 Click Connect.

9781118683231-fg1551.eps

A OS X displays the shared screen in a window.

View OS X on Your TV

If you have an Apple TV, you can use it to view your OS X screen on your TV. If you want to demonstrate something on your Mac to a group of people, it is difficult because most Mac screens are too small to see from a distance. However, if you have a TV or a projector nearby and you have an Apple TV device connected to that display, you can connect your Mac to the same wireless network and then send the OS X screen to the TV or projector. This is called AirPlay mirroring.

View the OS X Screen on Your TV

Mirror via System Preferences

9781118683231-fg1552.eps

001 Click System Preferences (9781118683231-ma006.tif) in the Dock.

The System Preferences window appears.

002 Click Displays.

The display preferences appear.

9781118683231-fg1553.eps

003 Click the AirPlay Display 9781118683231-ma009.tif and then click your Apple TV.

OS X displays your Mac’s screen on your TV.

Mirror via the Menu Bar

9781118683231-fg1554.eps

001 Follow steps 1 and 2 to open the display preferences.

002 Click the Show mirroring options in the menu bar when available check box (9781118683231-ma001.tif changes to 9781118683231-ma002.tif).

A OS X adds the AirPlay Mirroring icon (9781118683231-ma164.tif) to the menu bar.

9781118683231-fg1555.eps

003 Click 9781118683231-ma164.tif.

004 Click your Apple TV.

OS X displays your Mac’s screen on your TV (9781118683231-ma164.tif changes to 9781118683231-ma165.tif).