MacTech Network:   MacForge.net  |  Computer Memory  |  Register Domains  |  Printer Supplies  |  Cables  |  iPod Deals  |  Mac Deals  |  Mac Book Shelf


  MacTech Magazine

The journal of Macintosh technology

 
 
BetterRam.com

Magazine In Print
  About MacTech  
  Home Page  
  Subscribe  
  Archives DVD  
  Submit News  
  Submit a Tip!  
  Get a copy of MacTech RISK FREE  
Google
Entire Web
mactech.com
Mac Community
More...
MacTech Central
  by Category  
  by Company  
  by Product  
MacTech News
  MacTech News  
  Previous News  
  MacTech RSS  
Article Archives
  Show Indices  
  by Volume  
  by Author  
  Source Code FTP  
Inside MacTech
  Writer's Kit  
  Editorial Staff  
  Editorial Calendar  
  Back Issues  
  Advertising  
Contact Us
  Customer Service  
  MacTech Store  
  Legal/Disclaimers  
  Webmaster Feedback  
ADVERTISEMENT
Click Here

Volume Number: 14
Issue Number: 3
Column Tag: Tips & Tidbits

Tips & Tidbits

by Steve Sisak

Running TCP/IP Applications Without a Network

In order to run TCP/IP applications (clients and servers) without being connected to a network, a Mac still needs to be setup as if it were on a network. There are some special requirements in doing this for an unnetworked machine.

Ethernet cannot be used unless you are connected to a hub or another Ethernet device (if you are, you don't need the following method). So, you will instead have to use AppleTalk over LocalTalk (whether or not you're actually connected to a LocalTalk network). This method uses MacIP which is a way of using TCP/IP within AppleTalk.

  • AppleTalk must be on. You will want it to be using LocalTalk (use the AppleTalk control panel in OpenTransport, or the old Network control panel in other systems).
  • Depending on which you're using, the MacTCP or OpenTransport TCP/IP control panel has to be configured to connect using AppleTalk/MacIP.
  • Set your TCP connection to AppleTalk (MacIP) or LocalTalk.
  • Configure your local address to be obtained manually.
  • Set your IP Address to 192.0.1.2 (class C).
  • Leave the Domain Name Server fields blank (unless you are running a Domain Name Server on your mac, in which case set the fields to point to your local machine).
  • Any Routing/Gateway fields should be left blank (or set to 0.0.0.0 if they must be filled in).
  • In OpenTransport, click the "Select Zone..." button in the "TCP/IP" control panel and set it to "Current AppleTalk zone".
  • Subnet mask and any other fields are irrelevant, so should be left at their defaults (255.255.255.0).
  • MacTCP usually requires a reboot after configuration changes, OpenTransport accepts these changes on the fly.
  • You will have to address server software you run on your local machine by the IP address you assigned in the TCP/IP configuration (192.0.1.2). For example, a web server would be addressed using the url "http://192.0.1.2/" from your client software.
  • If you want to use domain names instead of IP addresses, you will need to configure domain names in your TCP "hosts" file. This file is found in your "System Folder". Instructions for setting up the hosts file are contained in the default "hosts" file supplied with MacTCP or OpenTransport.
This method is explained in detail at http://www.nisto.com/mac/question/network.html.

Grant Neufeld,
grant@kagi.com



Click here to find out more about our best subscription bundle deal ever!
2 years of the magazine, and the all new MacTech DVD ... at 70% off!



Click on the cover to
see this month's issue!

TRIAL SUBSCRIPTION
Get a RISK-FREE subscription to the only technical Mac magazine!
 
 


MacTech Magazine. www.mactech.com
Toll Free 877-MACTECH, Outside US/Canada: 805-494-9797

Register Low Cost (ok dirt cheap!) Domain Names in the MacTech Domain Store. As low as $1.99!
Save on brand compatible and name brank ink jet and laser supplies.
Save on long distance * Upgrade your Computer
Movies with No Late Fees!

See local info about Westlake Village
SJ * BRJ * BJ * OJ * NITS
Staff Site Links



All contents are Copyright 1984-2007 by Xplain Corporation. All rights reserved.

MacTech is a registered trademark of Xplain Corporation. Xplain, Video Depot, Movie Depot, Palm OS Depot, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, NetProLive, JavaTech, WebTech, BeTech, LinuxTech, Apple Expo, MacTech Central and the MacTutorMan are trademarks or service marks of Xplain Corporation. Sprocket is a registered trademark of eSprocket Corporation. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.