The three fundamental ways to connect a Mac to the Internet are dial-up accounts over a phone line and dial-up modem, broadband connections that use Ethernet, and wireless connections using AirPort. Although configuring dial-up accounts is relatively standard, many options are available for an Ethernet-based account. And, when you use AirPort to connect, you actually connect the AirPort hub (whether it is a Mac or an AirPort Base Station) through one of the two other methods.
A great way to network Macs and connect them to the Internet through a single account is by using AirPort; see Chapter 11, "Using an AirPort Network to Connect to the Internet," p. 297.
Providing the details of configuring every type of Internet account is beyond the scope of this chapter, but some examples of each type of access should enable you to configure your particular account.
NOTE
When you install Mac OS X on a Mac, the Internet Setup Assistant leads you through the configuration of your Internet account. You can launch the Internet Setup Assistant at other times to walk you through the configuration process by clicking the "Assist me" button on the Network pane of the System Preferences application.
If you use a provider that includes configuration software with your account, such as AOL, you can configure your account by using that software. In this section, you learn how to configure your account manually.
CAUTION
Here's another caution about any specific access software a provider might give you to access this Net. This software tends to be more problematic than it is worth, especially if it is Web-based. When you get an account and such software is provided, ask the provider whether it is required. Many times, this software is mostly a way for the provider to generate revenue by using it to advertise. I recommend you avoid this kind of software if you can.
You can configure multiple sets of Internet configurations for your machine so that you can switch between them easily. And, you can have multiple accounts configured and active on a machine at the same time (they will be used according to the priority you determine). This is useful when you use your Mac in different locations?for example, with a PowerBook that you use at a work location and at home or while traveling. Another case in which this is useful is if you have several ways of connecting from the same location, such as via a cable modem or dial-up account. As with previous versions of the Mac OS, you use the Location Manager to manage the Internet configurations on your machine. If you envision needing to do this, you should set up a location before configuring it. If you will need only one set of configurations, you don't need to use the Location Manager. Also, a single location can include multiple configurations, such as a dial-up account and a cable modem account.
To learn how to configure and use locations, see "Configuring and Using Locations," p. 989.
The Internet accounts you configure on your Mac will be available to all users who have accounts on your machine.
As you read earlier in the chapter, dial-up access is still the most commonly used connection method. Dial-up access is available everywhere and is simple to configure and use (although solving connection problems can be tough).
All modern Macs include an internal 56K modem as standard equipment; very little work is required to configure the Apple internal modem.
NOTE
If you use an external dial-up modem for some reason, you will need to obtain a Mac OS X?compatible driver for it and then configure that modem using the instructions provided by the manufacturer. Covering external modems is beyond the scope of this chapter.
To configure a modem, use the following steps:
Open the System Preferences utility and in the Internet & Network section, click the Network icon. The Network pane appears.
NOTE
If you are configuring more than one location, select the location you want to configure on the Location pop-up menu (Automatic is the default). You can also choose to create a new location on that menu (see Appendix B, "Computing on the Move with PowerBooks and iBooks," for details).
Select Network Status on the Show pop-up menu if it isn't selected already. In the lower part of the pane, you will see all the connection options available in the selected location. For example, if your Mac is connected to an Ethernet network, an AirPort network, and has an internal modem, you will see each of these connections listed in the window. When a connection is active, it has a green circle next to it. When the connection method is available but is not configured, it has a red circle instead (see Figure 10.3). If you use AirPort but it is not currently connected to the Internet, its status light will be yellow.
Select Internal Modem from the Show pop-up menu.
Click the Modem tab (see Figure 10.4).
Use the pop-up menu, radio buttons, and check boxes to configure your modem. In most cases, the default values will work fine. If you use something other than the Apple Internal 56K Modem, select your modem from the Modem pop-up menu. If your telephone system is not touch-tone, you must click the Pulse radio button. Also, if you have voice mail or another system that can interfere with a standard dial tone (such as beeping to indicate that you have a message waiting for you), you need to uncheck the "Wait for dial tone before dialing" check box. Leave the sound on until you are sure that your connection works reliably; the noise made by your modem can help you troubleshoot connection problems. After you are sure that your connection works, select the Off radio button to turn off your modem sound.
Use the Country Setting tools to configure your modem for the country in which you are using it.
Check the "Show modem status in menu bar" check box. This places a telephone icon on your menu bar. You can use this to control and monitor your dial-up connection.
Click Apply Now to save any changes you make.
TIP
When you are working with the Network pane, you can click the "Assist me" button to open the Network Setup Assistant. The application helps you configure network connections, such as a dial-up connection to the Internet. However, mostly what this does is just ask you for the same data you can more quickly enter manually.
Next, you'll need to configure your TCP/IP and PPP settings:
Click the TCP/IP tab.
Select the configuration option you want from the Configure IPv4 pop-up menu. For almost all dial-up accounts, this should be Using PPP. If you use an AOL dial-up account, select AOL Dialup. However, if your dial-up account includes a static IP address, select Manually and enter the IP address.
NOTE
IPv4 is the current Internet protocol standard in almost all situations. However, IPv6 is a newer standard that is being used in some research institutions. If you need to configure a connection based on IPv6, you can do so by clicking the Configure IPv6 button and using the resulting sheet to configure the service. In most cases, the automatic settings should work fine, but you can also enter manual settings if you need to.
If your provider provided DNS and search domains for your account, enter the information in the appropriate boxes.
Click the PPP tab (see Figure 10.5).
Enter the name of your ISP in the Service Provider field. This is optional, but it is a good idea so that the connection is easy to identify by name.
Enter your access account name in the Account Name field. Make sure that you use the account name that will access your account; this might be different from your email user account name.
Enter your access password in the Password field and make sure that the "Save password" check box is checked. This is especially important if you share your Mac and want everyone to be able to access the Net. Again, your access password might be different from your email account password. If you prefer to have to enter your password each time you connect, leave the Password field empty.
NOTE
When you enter a password, the "Save password" check box is checked by default; if you uncheck it, your password will be deleted from the field.
Enter the telephone number you need to dial to connect to the provider in the Telephone Number field. Make sure that you enter the number exactly as you would dial it to make a standard phone call to this number. For example, if you need to dial an access code to reach an outside line, enter that code followed by a comma before the number (as in 9, 555-5555). If you need to dial a 1 or the area code to reach that number, enter those numbers as well.
If you have call waiting, you also need to enter the code to disable it, such as *70. If a call comes in while you are connected to the Net, the call waiting signal might disrupt or cancel your Net connection. Check with your telephone provider to find out the specific code you need to use to turn off call waiting. Remember to turn it back on when you are done with your Internet session.
If your provider offers more than one access number, enter the second one in the Alternate Number field. If you receive a busy signal when your Mac dials the first number, it will try the alternate number.
Click the PPP Options button to open the PPP Options sheet (see Figure 10.6). Use the controls on this sheet to configure your dial-up access.
In most cases, you should check the "Connect automatically when needed" check box. This enables your Mac to automatically connect to the Net when it needs to. If you have to pay for access by the minute or have to pay toll charges, you might want to leave this unchecked.
Use the next three check boxes to control how your Mac disconnects your connection:
If you want to be prompted when your Mac is connected but is not actively using the connection, check the "Prompt every XX minutes to maintain connection" check box and enter the time after which you want to be prompted.
If you want your Mac to automatically disconnect after a specific period of time, check the "Disconnect if idle for XX minutes" check box and enter the idle time. These options are beneficial primarily if you have to pay for access on a time basis or if you share a phone line for Internet access and voice conversations.
Most users should check the "Disconnect when user logs out" check box so that the connection is broken when the current user logs out of the machine.
Use the redial controls to set the number of times you want your Mac to redial in the event of a busy signal and how long you want it to wait between tries.
NOTE
Only in rare cases will you need to use the controls in the Advanced Options area. The options can be useful when troubleshooting a dial-up connection.
Click OK to close the PPP Options sheet, and then click Apply Now to save your changes.
NOTE
A proxy server is a server that sits between your machine and the Internet and actually downloads and serves Internet resources to your machine. It is highly unlikely that you will use proxy servers with a dial-up account, although it is possible.
To learn how to configure proxies, see "Configuring TCP/IP Using a DHCP Server," p. 286.
If you use a .Mac account, the last step is to configure the .Mac pane of the System Preferences utility for your account. This enables your Mac to automatically access your .Mac account when it needs to.
NOTE
If you configured your .Mac account when you installed Mac OS X version 10.3 or chose to install it using an existing installation for which you had configured a .Mac account, you can skip these steps.
To configure the .Mac pane for the current account, do the following:
Open the .Mac pane of the System Preferences utility.
Click the .Mac tab if it isn't selected already.
Enter your .Mac member name.
Enter your .Mac password.
Click the iDisk tab.
Configure your iDisk. If you are using a dial-up connection, you probably don't want to synchronize your iDisk, so make sure that the "Create a local copy of your iDisk" check box is unchecked.
To learn more about configuring and using an iDisk, see Chapter 14, "Putting Yourself on the Web," p. 423.
Quit the System Preferences utility.
You can test your account by opening an Internet application, such as a Web browser (assuming you enabled your Mac to connect automatically). If you are able to access Internet resources, your configuration is complete. Or, you can use the application that you use to manually connect and disconnect from your account, which is Internet Connect.
TIP
You can check your connection from the Network pane by clicking the Dial Now button on the PPP pane.
Test your configuration using these steps:
Open the Internet Connect application (Applications directory) and click the Internal Modem button on the toolbar. You will see the account information you configured earlier.
Click the Connect button. You will see the status of the connection in the window. You will also hear your modem dialing out and the delightful tones of the handshaking process. If your connection is successful, you will see the connected message and status information in the lower part of the Internet Connect window.
Click Disconnect to shut down the connection.
Quit Internet Connect.
If you are able to connect successfully, you can use Internet applications, such as your email and Web browser.
TIP
In Internet Connect, select Window, Connection Log to see information about your connection status, such as the current IP address.
If you are unable to connect using your dial-up account, see "My Dial-up Connection Fails to Connect" in the "Troubleshooting" section at the end of this chapter. |
Using AirPort, you can easily set up a wireless connection to the Internet and share a single dial-up account among several machines. You can also use Mac OS X's built-in sharing capability to share a single account among several machines. See Chapter 27, "Sharing an Internet Connection," p. 855.
If you choose to show the modem status in the menu bar, you can easily manage your connection from there. When you open the menu, you will see various options and information, depending on your modem's current status (see Figure 10.7).
When you open the menu, you will see your modem's status. If disconnected, you can click Connect to connect and vice versa. You will also see which modem you have selected; you can open Internet Connect quickly and easily by selecting Open Internet Connect. You can also choose the status information that is displayed by selecting "Show time connected" or "Show status while connecting."
NOTE
When you are connected to the Internet and Internet Connect is open, its icon includes a green lightning bolt. You can install Internet Connect on your Dock if you prefer to manage your connection from there rather than from the menu bar.
CAUTION
As soon as you connect your Mac to the Internet with an always-on connection, especially one with a fixed IP address, your Mac becomes vulnerable to attacks from hackers. You shouldn't connect a machine to the Internet with a fixed address unless you have some type of firewall protection in place; fortunately, Mac OS X includes a built-in firewall.
However, best practice is to install a hub between your Mac and the modem. Most hubs offer firewall protection and enable you to share an Internet account.
To learn how to install and use an AirPort Base Station as a hub, see Chapter 11, "Using an AirPort Network to Connect to the Internet," p. 297.
To learn how to install and use a hub to share an Internet account, see Chapter 27, "Sharing an Internet Connection," p. 855.
To learn how to protect your Mac from Net attacks, see "Defending Your Mac from Net Attacks," p. 908.
Configuring an Internet account for Ethernet connection is actually a bit simpler than configuring a dial-up account. The three main options you use for an Ethernet-based Internet account are Manual IP Settings, DHCP Server, and PPPoE. DHCP Server is the most likely option you will use. However, your ISP will tell you which option is appropriate for your connection.
Connect your Mac's Ethernet port to the cable modem or to the hub to which the cable or DSL modem is connected. Then, configure the OS to use that connection.
NOTE
Some broadband modems connect to a USB port rather than an Ethernet port, but configuring the account on your Mac works in the same way.
If your provider provides access through a DHCP server, configuring your account is straightforward.
NOTE
Many local area networks provide Internet access by installing a DHCP server on the network and connecting that server to the Internet (often with a T-1 line). In such cases, you can configure your Mac to use that DHCP server to connect to the Net just as you can when you deal directly with an ISP for an account.
To configure your account, do the following:
Open the Network pane of the System Preferences utility.
From the Show pop-up menu, select Built-In Ethernet (see Figure 10.8).
Click the TCP/IP tab.
Select Using DHCP from the Configure IPv4 menu.
If you have a DHCP Client ID (your ISP will tell you if this is the case), enter it in the DHCP Client ID field. (If you are using a DHCP server on a local network, you can probably leave this field empty. In some cases, you can leave this field empty even when you are using an ISP to gain Internet access.)
If you have DNS and search domain information, enter it in the appropriate fields (these are optional when you use a DHCP server).
If you are on a network that uses a proxy server, click the Proxies tab and configure the proxies for your network.
For more information about proxy servers, see "Understanding and Configuring Proxy Servers," p. 289.
Click Apply Now to save your changes.
Open an Internet application, such as a Web browser. If you can access Internet resources, your configuration is complete.
Configure the .Mac pane of the System Preferences utility if you have a .Mac account.
For more information about configuring the .Mac pane, see "Configuring the .Mac Pane of the System Preferences Utility," p. 283.
If you are unable to access Internet resources after configuring your account with a DHCP server, see "My Ethernet Connection Can't Connect" in the "Troubleshooting" section at the end of this chapter. |
If your provider supplies a static or manual address for you, use the following steps to configure it:
Open the Network pane of the System Preferences utility.
From the Show pop-up menu, select Built-in Ethernet.
Click the TCP/IP tab.
Select Manually from the Configure IPv4 pop-up menu.
NOTE
You can also use a static IP address with the router being assigned dynamically. If this is the case for you, select "Using DHCP with manual address" instead of Manually. The rest of the steps are the same, except you don't configure the router because that is done for you by the DHCP router.
Enter the IP Address, Subnet Mask, Router, DNS, and Search Domains information your ISP provided in the appropriate fields.
Click Apply Now to save your changes.
Open an Internet application, such as a Web browser. If you can access Internet resources, your configuration is complete.
Configure the .Mac pane of the System Preferences utility if you have a .Mac account.
For more information about configuring the .Mac pane, see "Configuring the .Mac Pane of the System Preferences Utility," p. 283.
If you are unable to access Internet resources after configuring your account manually, see "My Ethernet Connection Can't Connect" in the "Troubleshooting" section at the end of this chapter. |
NOTE
IPv4 is the current Internet protocol standard in almost situations. However, IPv6 is a newer standard that is being used in some research institutions. If you need to configure a connection based on IPv6, you can do so by clicking the Configure IPv6 button and using the resulting sheet to configure the service. In most cases, the automatic settings should work fine, but you can also enter manual settings if you need to.
A proxy server is a server that sits between end-user computers on a network and the Internet. All Internet traffic of a specific type (such as HTTP for Web pages) passes through a specific proxy server. There can be separate proxy servers for each type of service (such as HTTP, FTP, and so on), or a network can use a single proxy server for all Internet services.
When a machine on the network requests a resource (such as a Web page), the proxy server downloads the resource and serves it to the machine as if the resources originated from the proxy server itself (although the user doesn't notice that the page is being served by the proxy server instead of the server hosting the requested page).
Proxy servers serve two main purposes:
They can improve speed in some cases? Because the Internet resources are downloaded to the proxy server and then served to users on the local network, after the first access, subsequent accesses to that resource are much faster. This is true because the resource must be downloaded from the Internet to the proxy server only once; from there, it can be served to users on the local network rather than downloading it from the Internet each time.
They can be used to filter requests? Because all information from the Internet flows through a proxy server, that server can be set to block access to specific Internet resources.
NOTE
For more information on proxy servers, see http://webopedia.internet.com/TERM/p/proxy_server.html. |
If you are on a network that uses proxy servers, you use the Proxies tab of the Network pane of the System Preferences utility to configure them (see Figure 10.9). You configure a proxy for a specific service by checking the check box for that service and entering the proxy address and port in the appropriate fields. Typically, you obtain the proxy server information you need from your network administrator.
Configuring a PPPoE account is more complicated than the other Ethernet options, but it still doesn't take more than a few minutes:
Open the Network pane of the System Preferences utility.
From the Show pop-up menu, select Built-In Ethernet.
Configure the TCP/IP settings for your PPPoE account (see the previous sections for details).
Click the PPPoE tab (see Figure 10.10).
Check the "Connect using PPPoE" check box.
Enter the name of your service provider in the Service Provider field. (This is optional.)
Enter your access account name in the Account Name field.
Enter your access password in the Password field; again this might be different from your email account password. If you leave this field empty, you must enter your password each time you connect. (When you enter a password, the "Save password" check box is checked by default; if you uncheck the check box, your password is deleted from the field.)
Enter the service name in the PPPoE Service Name field. (This is also optional.)
Check the "Show PPPoE status in menu bar" check box. This puts a menu on the menu bar that you can use to control your PPPoE connection.
Click the PPPoE Options button to open the Session Options sheet. Use the controls on this sheet to configure your Internet access.
In most cases, you should check the "Connect automatically when needed" check box. This enables your Mac to automatically connect to the Net when it needs to.
Use the next three check boxes to control how your Mac monitors your connection. If you want to be prompted when your Mac is connected but is not actively using the connection, check the "Prompt every XX minutes to maintain connection" check box and enter the time after which you want to be prompted to maintain the connection. If you want your Mac to automatically disconnect after a specific period of time, check the "Disconnect if idle for" check box and enter the idle time. Most users should check the "Disconnect when user logs out" check box so that the connection is broken when the current user logs out of the machine.
NOTE
In only rare cases will you need to use the controls in the Advanced Options area. The options can be useful when troubleshooting a PPPoE connection.
Click OK to close the PPPoE Options sheet, and then click Apply Now to save your changes.
You can test your account by opening an Internet application, such as a Web browser (assuming you enabled your Mac to connect automatically). If you are able to access Internet resources, your configuration is complete. Or, you can use the application that you use to manually connect and disconnect from your account, which is Internet Connect. Do the following:
Open the Internet Connect application (if you turned on the PPPoE status menu, open it and select Open Internet Connect).
Select Built-In Ethernet from the Configuration pop-up menu. You will see the PPPoE account information you configured earlier.
Click the Connect button. You will see the status of the connection in the window. If your connection is successful, you will see the connected message and status information in the lower part of the Internet Connect window.
Click Disconnect to shut down the connection.
Quit Internet Connect.
If you are able to connect successfully, you can use Internet applications, such as your email and Web browser. You can monitor and control your connection from the PPPoE status menu on the menu bar.
If you use a .Mac account, you need to configure it on your Mac, see "Configuring the .Mac Pane of the System Preferences Utility," p. 283.
TIP
In Internet Connect, select Window, Connection Log to see information about your connection status, such as the current IP address.
NOTE
You can also add Internet Connect to the Dock. When the Internet Connect icon appears in the Dock, it displays a green lightning bolt when you are connected to the Internet.
If you aren't able to connect to the Internet, see "My Ethernet Connection Can't Connect" in the "Troubleshooting" section at the end of this chapter. |
To learn how to share a single Internet connection among multiple Macs, see Chapter 27, "Sharing an Internet Connection," p. 855.
If the Internet is vital to you, such as for business purposes, you might have more than one Internet account you access in different ways. For example, you might use a cable modem as your primary access and maintain a dial-up account as a backup. You can maintain multiple Internet accounts on a single Mac.
You can manage the Internet accounts on your machine through the Network Port Configurations pane of the Network pane of the System Preferences utility (see Figure 10.11).
In Figure 10.11, three Internet connections have been configured and two are active. The active ports are AirPort and Built-in Ethernet. The Internal Modem configuration is available but is not active. (You can tell which ports are active by the check marks.) The order in which the ports are listed determines which port is tried first when a connection is needed. In this example, the AirPort connection will be tried first, followed by the Built-in Ethernet port.
To configure multiple accounts, do the following:
Open the Network pane of the System Preferences utility.
Select the port you want to be your primary connection method on the Show menu.
Configure that port for the related account (see the previous sections in this chapter for details). For example, configure your machine to use an Ethernet network to connect to the Internet.
From the Show menu, select Network Port Configurations.
Make sure the connection you configured is turned on (its check box is checked) and that it is first in the list of port configurations.
From the Show menu, select the port you want to be the second connection option, such as an internal modem.
Repeat steps 2?4 to configure that account.
Make sure that the port is turned on; it should appear second in the list of port configurations.
Continue configuring ports you want to be active and arranging them on the list in the order in which you want them to be used.
Turn off any ports you don't use. Turning off active ports might provide some small performance and boot time improvements, and it might make your Mac more secure. But mostly it is a matter of keeping your configuration settings as accurate as possible.
Click Apply Now and then quit the System Preferences utility.
When your machine needs to connect to the Internet, it tries the accounts you specified in the order in which you specified them. Following are some other points about managing multiple connections:
You can have more than one configuration of the same port. To create a new instance of a port, click the New button. Name the port and then select the type of port it is (Internal Modem, External Modem, Built-in Ethernet, and so on). Click OK and the new port appears on the list. You can configure it in the same way as the default ports. For example, new ports you create appear on the Show menu; select the port to configure it.
AirPort, PPPoE, internal modem, and external modem ports appear on the Configuration pop-up menu in Internet Connect. You can use that application to manage those connections.
The Duplicate button duplicates a port configuration. This can be useful when you are configuring more than one port of the same type.
You can edit a port's name by double-clicking it.
TIP
Only those ports that are active appear on the Show pop-up menu.
You can also maintain multiple sets of network and Internet configurations that you create and maintain through the Location Manager. For example, if you use a PowerBook, you might have a configuration when you use the machine from home, another when you use it from work, and so on.
To learn how to configure and use locations, see "Configuring and Using Locations," p. 989.