ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Q: I'm developing TCP/IP client/server applications and want to run the client and the server on the same machine. However, I'm not on an Ethernet network, so I don't have a constant Internet connection or a fixed IP address. How can I get TCP/IP to work on my standalone machine, without having to dial into my ISP every time? A: The easiest way to set up a single-machine network is to tunnel TCP/IP through AppleTalk, and set AppleTalk to use a "null" connection that won't connect to the outside world. You can use this on a machine with dial-up Internet access (to avoid having to dial up just to test your apps) or even on a totally disconnected PowerBook in the middle of the Kalahari desert. Here's how to set it up:
You are now ready to set up TCP/IP connections between applications running on your machine, even if you have no actual network
connection. The IP address to connect to is " If you want to be able to switch between this and other networking configurations like PPP or Ethernet, you can create named configurations in the control panels and then set up multiple locations in the Location Manager control panel to switch between the configurations. It takes a little work to set up, but you can then use the Control Strip to switch configurations with a single mouse click. |
|