When you have a (A)DSL connection like I do, you have to specify your internal IP number in the Network control panel, as well as the router address. For example, 10.0.0.150 and 10.0.0.138. Your real IP address will be different. When you have built a website on your computer (or anything else), you may want to check if what you did was any good. This can be a problem, since your 'outside' IP address is, of course, not 10.0.0.150, but some other number. This can be a fustrating mess. After checking complicated solutions like the Apache conf file and routed, I just found an amazing simple solution!
- Go to Preferences -> Network and selelect Network Port Configurations from the popup.
- Duplicate your ethernet card's port
- Change the IP address to your outside IP number, e.g. 80.60.xx.xx (no complete sample ;-))
- Set the netmask: 255.255.0.0
- Set the router: 127.0.0.1
- Hit Apply Now
The control panel will complain that the router's address is not in your address range. Ignore this. Now you can access your local machine by its external IP. I'm quite amazed at the simlicity of this!
[
robg adds: I have not tested this one...]