I'm a Cold Fusion developer who prefers the Mac as my environment for development. I've long had the dream of being able to spend my time in BBEdit to develop my server side applications, and have finally learned how to do it. I thought that I would share my experiences in setting up a Mac/PC home network for file sharing as well as for sharing web resources, so that others in the same boat may have a path to follow. One must of course have a Mac, a PC and the required software for all of this to work.
Note: This document isn't intended to be authorotative, it's meant to help those poor souls who might be thrashing in the midst of confusion and mental anguish as they try to get this set up. Thus, I present only a minimum amount of information to get them stated. You'll run into the phrase 'RTFM' and 'RTFH' frequently, I'm sure. Onward ho!
The network I use is small. It consists of two machines. (Four actually, but only two are involved in the development process. The rest run SETI at home
This guide assumes that you are using the above, and that you have a connection to a cable or DSL for net access. This might work if your connection is to a LAN as well, but that would kind of make this guide useless, neh?
The network consists of two parts: File sharing, and TCP access. Let's make sure we've got the environmentals set up right.
Hardware Setup. Ensure that the following is true:
Getting your Mac ready. Ensure that the following is true: The latest version of Open Transport is installed. (Check Apple.com for the details on which is the latest.) AppleTalk is installed and correctly running. (Check out the Apple Help Center from your Help menu for the details.)
Getting your PC ready. Ensure that the following is true:
REMEMBER: This assumes that you are using Win2kPro or some NT based machine. You'll have to figure out the difference in OS ('95,'98,ME) on your own.
Setting up your computer identity.
For web services, you may have to install them from your Win2KPro disk. They aren't installed by default.
Setting up PC file sharing permissions.
Setting up PC web sharing permissions.
I use PC MacLan 8.1 for the file sharing. The file sharing is done using Apple's AppleTalk protocol. In this case, the PC will be the host. Win2kPro doesn't come with the AppleTalk service. PC MacLan takes care of this.
AppleTalk on the Mac
PC MacLan on the PC
Configuring PC MacLan. Once PC MacLan has been correctly installed, check your task bar (lower left of the screen) to see if it's there. Double click it, read the help. Choose the 'Configure' menu, or click the buttons one by one.
Configure: Users and Groups
Configure: Share Folders
Configure: File Extension Mapping
This is a list that will set the type and creator of a file to match an extension. If you aren't clear on what they should be, go to your Mac and look into your File Exchange control panel, or your Internet control panel. For the last, look at Advanced->File Mappings.
Go to the chooser, click on AppleShare, you should be able to see your PC name. If not, check the environmentals and RTFM&H. If you do, load it up, and you should be able to access the files on your PC. Yay!
I use my Mac as the gateway. Using IPNetRouter, I set my current internet account as the access point, with my TCP/IP settings as I normally would for single machine access. IPNetRouter then creates a 'Gateway' to which all of my machines other than the Mac point to know where is what. This enables me to allow my four machines to connect to the net as well as allowing my other machines to refer to each other by an IP address (that is resolved by IPNetRouter).
Once you have an IPNetRouter setting, you will most likely see two lines in the interface window: The first line will describe the current connection. The second line will describe the 'Router' or the 'Gateway'. Take close note of the IP address and the subnet mask. Set up your other machines, including your PC with that same IP address+1, and subnet mask. Lets just say that the IP in the second line of the IPNR interface is: 192.160.233.1 is and the subnet is: 255.255.255.0 . You'll want to do this Mac: Standard settings in TCP/IP control panel: unchanged. PC: IP address: 192.160.233.2. Other computer IP address: 192.160.233.3, another computer IP address: 192.160.233.4, etc... The subnet should be the same for all but the gateway/router computer.
Each machine now has it's unique IP address, and share a subnet mask. Each machine should also be given it's DNS number. (DNS is what allows a computer to use a domain instead of an IP when you type something into the URL bar of your browser). Each control panel will most likely want the DNS address of your ISP.
At this point, each machine should be able to interact with the net. Test it to make sure this is true. Now, we need to make the Macs access our PC's web services.
Note: I busted my head for days on this. Please grant me a moment's patience as go though the following: IIS is a multi-user OS. The web server is meant to deal with multiple web sites. Uhm... Duh!
At this point, we should be able to do the following: 1) Share files between Mac and PC, 2) have all computers touch the net, 3) have local computers touch the PC though it's HTTP servers. Are we happy campers yet? I am!
I recognise that there are probably more elegant ways to accomplish all of this, and there are most likely better ways, choices and options. Well, I got it working! So there. I'm a programmer, not a network admin, and hope that others like me will find this useful. If you've got suggestions, or additional information, or wish to actually add to this document, please contact me. (Info at the end of this doc).
I prefer to edit my files in BBEdit, because quite frankly, no other text editor on the market across any platform comes close to having the polish, features and user/developer friendliness that BBEdit has. Here are some of the tricks that I've learned over a couple of years to take advantage of it.
I appreciate any comments on this article, you can send them to me at [email protected]. That having been said, I disclaim any position of being an expert, or even being knowledgeable on the subject of networking. This article is as much to share with others as it is to keep a backup of what I did in case I ever blow it and need to look up just what it is that I did! Feel free to email me in regards to questions to clarify points of the contents of this article, but I will not be able to answer an questions regarding your own particular setup.
PostScript: *sigh* as is almost always the case, after one has solved a problem, the answer appears every where. There is a fairly comprehensive tutorial that can be found at http://www.macwindows.com/netbasic.html
Frank Marion, Web Application Developer Email: [email protected] Web: http://www.framarstudios.com Frank has over ten years of experience in the field of internet development. His skills range the gamut of web developement fields, and is known for the quality of his work. |