You are currently offline, waiting for your internet to reconnect

How To Set Up a TCP/IP Peer-to-Peer Network Connection

Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
The process for setting up a TCP/IP peer-to-peer network connection betweentwo computers is not intuitively obvious, especially if you have never setup networks before. This article describes how to put together a TCP/IPpeer-to-peer network connection between your PC and your Macintosh quicklyand easily.
More information

General Physical Network Connection Issues

There are three common types of network cabling: Twisted Pair, ThinNet, andThickNet.

If you are using twisted-pair, which is thin wire with wide phoneconnectors (RJ-45), both your PC and Macintosh need to be plugged into anetwork hub so power is flowing through the network cable to carry data.Depending on the manufacturer and model, hubs usually allow between fourand 20 machines to network.

Typically no extra hardware is required if you are using either ThinNet,which looks like Cable TV wiring with a round plug, or ThickNet, which isheavy, 1/4 inch cable with D-shell 15-pin connectors. The network cards canbe connected to each other directly.

Several newer Macintosh models have a built-in network connector calledFriendlyNet. You are required to obtain a network transceiver, such asAsante's 10T Adapter, to use one of the cables mentioned above.

Choosing IP Addresses for Your Machines

For simplicity, use class B IP addresses for your peer-to-peer network. Thespecifications for class B IP addresses are as follows:

  • The first digit of the IP address must be between 128 to 191 inclusively.
  • The subnet mask is:
  • The first two digits of the IP address must match on both machines. For example:
       machine1:   machine2:						
NOTE: When creating an IP address, avoid using 0 or 255 for any of thedigits because these numbers are reserved for special use.

Here's a good example of a set of IP address to use:
   Macintosh:                     PC Running Windows NT or Windows 95:				

Configuring TCP/IP on the Macintosh

If you see MacTCP on your Macintosh control panel, you are running MacTCP.If you see TCP/IP instead, you are running Apple's Open Transport.

The new PCI-based PowerMacs only come with Open Transport. Older models ofthe Macintosh come with MacTCP on the System 7.x installation media. CheckApple's documentation for installation details.

To configure your system using MacTCP:

  1. From the MacTCP control panel, select Ethernet or Ethernet Built-In and enter the following:
       IP Address:						
  2. Click More, and enter the following:
       Obtain Address: Manually   Class:          B   Net:            38500   Subnet:         0   Node:           25610   Gateway:   Name Server:    <blank>						
  3. Click OK, and close the control panel. Restart your Macintosh to ensure that the settings take place.
NOTE: MacTCP may not respond to network packets with its IP address untilyou initiate a TCP/IP network connection from the Macintosh end. Apple hasa program available called MacTCP Ping that initializes your TCP/IP networkconnection on start up. Using MacTCP Ping allows your PC to see your Macintosh.

To configure your system using Open Transport TCP/IP:

  1. Go to the TCP/IP control panel, and enter the following settings:
       Connect Via:    ethernet   Configure:      manually   IP Address:   Domain Name:    <blank>   Subnet Mask:   Router Address: <blank>   Name Server:    <blank>						
  2. Close the control panel, and restart your Macintosh to ensure the settings take place.

Configuring TCP/IP on Windows NT

  1. Go to the Network control panel.
  2. From the Installed Network Software list box, select TCP/IP Protocol, and click Configure.
  3. Make sure the Enable Automatic DHCP Configuration is deselected, and enter the following:
       IP Address:   Subnet Mask:						
  4. Make sure the Default Gateway and the Primary/Secondary WINS Server entries are blank.
  5. Click DNS, and ensure everything is blank except for the Host Name, which contains the name of your Windows NT machine. Click OK.
  6. Click Advanced, and ensure that Enable LMHOSTS Lookup is selected. Everything else should be either blank or deselected. Click OK.
  7. Close the Network control panel, and restart Windows NT.
  8. Find the file named Hosts.sam in the \Winnt\System32\Drivers directory. Make a copy and name it Hosts, leaving it in the same directory.
  9. Edit the Hosts file, and add the following line at the bottom:  mymac						
  10. From the File menu, choose Save. You are now ready to test the connection.

Configuring TCP/IP on Windows 95

  1. From the Network control panel, select TCP/IP, and click Properties.
  2. Go to WINS Configuration, and select Disable WINS resolution.
  3. Go to the IP Address, select Specify an IP Address, and enter:
       IP Address:   Subnet Mask:						
  4. Go to Gateway, and make sure it is empty.
  5. Go to DNS cofiguration, and select Disable DNS.
  6. Click OK, and close out the Network control panel. Restart Windows 95.
  7. In the main Windows directory, usually C:\Windows, find the file named Hosts.sam. Copy the file, and name it Hosts. Place the file in the main Windows directory.
  8. Edit the Hosts file, and add the following line at the bottom:  mymac						
  9. From the File menu, choose Save. You are now ready to test the connection.
NOTE: If the MSN login dialog box appears when you are connecting, clickCancel to continue. To disable this behavior, run the Internet applet fromthe control panel and clear the UseAutoDial option in the AutoDial Tab.

Testing the TCP/IP Connection

To test the network connection, use the Ping command line utility on thePC. Open an MS-DOS/Command window and type one of the following:
C:\>ping mymac


Replace and mymac with whatever you set in the Hosts file.Using mymac causes the TCP/IP service to look up the name in the Hosts fileto resolve it to an IP address. The expected output from Ping looks likethe following:
   C:\>ping   Pinging with 32 bytes of data:   Reply from bytes=32 time=10ms TTL=254   Reply from bytes=32 time<10ms TTL=254   Reply from bytes=32 time<10ms TTL=254   Reply from bytes=32 time<10ms TTL=254				
If you receive a Bad IP address error, you need to check your Hosts fileentry to ensure that the IP address and name match what is set on theMacintosh.

If you receive a Request timed out error, you need to check the physicalnetwork connection and ensure that the IP address in the Hosts filematches what is set on the Macintosh. If you are running MacTCP, you canrun MacTCP Ping to initialize the TCP/IP network.
listbox mac peer to net

Article ID: 150575 - Last Review: 06/22/2014 18:02:00 - Revision: 3.0

  • kb3rdparty kbhowto kbnetwork KB150575