05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

362<br />

CHAPTER 20 LEOPARD NETWORKING<br />

That said, there’s no technical reason why you can’t serve your pages over another interface,<br />

such as AirPort. In fact, I’m going to use AirPort in this example, for reasons that will become<br />

clear. In either case, click the Advanced... button to reveal the Advanced Settings sheet, and then<br />

click the TCP/IP tab, as shown in Figure 20-10.<br />

Figure 20-10. Setting up a static IP address in System Preferences<br />

Make a note of your IPv4 address, subnet mask, and router address, as well as which ports<br />

you’re trying to access. In the case of serving web pages, the default is 80, so if you changed it<br />

earlier, make a note of that. It’s not a bad idea to confirm from within the local network that the<br />

socket you will be forwarding to works, which will make testing the forwarding that much<br />

easier.<br />

Once you’ve got the IP address set and the ports open and tested, configure your router to<br />

forward messages on the appropriate ports to your machine’s IP address and local port. How do<br />

you do that? I have no idea. Every router is different, so you’ll have to read the manual or search<br />

the Internet for the exact information. That said, Apple’s AirPort base stations are DHCPenabled<br />

routers, so I’ll set one up as an example. Open AirPort Utility and sign in to the base<br />

station that connects your web server to the Internet.<br />

Click the Manual Configuration button, select the Advanced panel, and then select the Port<br />

Mapping tab. You can also reach this tab by clicking the Configure Port Mappings... button on<br />

the NAT tab of the Internet panel. Either way, the port mappings are just a list of ports. To add<br />

yours, click the + button, and then fill out the form, as shown in Figure 20-11. The Public Port<br />

Number(s) field lists the ports you want forwarded. In this example, I’m assuming my ISP blocks<br />

port 80, so I’m mapping port 8080. Of course, there’s no reason we couldn’t map them both, just<br />

in case.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!