Directly connecting computers and sharing files
If you want to share files between two computers that are not connected to a network, and prefer not to use removable media, you can establish a direct connection between the computers.
On this page:
Direct connection using a crossover cable
If one or both computers use Windows Vista
If one or both computers use Windows Vista, to use a crossover cable to connect them:
- Connect the two computers using the Ethernet crossover
cable.
- On a computer running Windows Vista, in Classic View, from the
Startmenu, clickControl Panel. Then, double-clickNetwork and Sharing Center.Note: If this doesn't match what you see, refer to About navigation settings in Windows.
- At the top of the main portion of the
Network and Sharing Centerwindow, double-click theUnidentified Network (or Multiple Networks)icon.
- If network discovery and file sharing are disabled, the following
message will appear:
Click the message to enable network discovery and file sharing; you may be prompted for an administrator username and/or password."Network discovery and file sharing are turned off. Network computers and devices are not visible. Click to change..."
Note: At Indiana University, the University Information Security Office (UISO) recommends that you normally refrain from running your Windows computer as an administrator. For more, see What is the principle of least privilege?
- In the dialog box that opens, select
No, make the network that I am connected to a private network. This allows you to initiate file sharing on the two computers without affecting the settings for any other networks.
- Icons for both computers should now be visible in the
Networkwindow. Double-click a computer icon to share printers and other resources.Note: If one of the computers is running Windows XP, it can take some time for that computer to appear in the
Networkwindow. You may also need to configure the Windows XP computer according to the following section.
If both computers use Windows XP
If both computers use Windows XP, to use a crossover cable to connect them:
- On each computer, from the
Startmenu, selectControl Panel, orSettingsand thenControl Panel.
- Double-click
System, and then select theComputer Nametab. Enter the names of each computer and the name of the workgroup; the name of each computer should be unique, but the workgroup name must be identical for both.
- From the Control Panel, double-click
Network Connectionson both machines, and then connect the computers using the crossover cable. If either machine's status is shown as 'Disconnected', the cable is either not firmly seated or bad.
- After the connection is made, you must enable file sharing for
each computer. Right-click the icon for the network connection, and then
select
Properties. Click theAdvancedtab, and then clickWindows Firewall Settings.
- In the
Windows Firewall Settingswindow, click theExceptionstab, and make sure thatPrinter and File Sharingis selected on both machines.
It may take some time for both machines to obtain IP addresses and
appear in the Network Connections window.
Direct connection using a null-modem cable
In Windows XP, if you do not have an Ethernet card, you can also make a direct cable connection using a serial or parallel null-modem cable:
- From the
Startmenu, selectControl Panel, orSettingsand thenControl Panel.
- Double-click
Network Connections.
- In the "Network Tasks" portion of the window, select
Create a new connection, and then clickNext.
- Click
Set up an advanced connection, and then clickNext.
- Select
Connect directly to another computer, clickNext, and then select a role for each machine. One will be the host, and the other the guest. In general, the host should be the machine with the files to be transferred, and the guest should be the machine to which the files will be copied.
- On the host computer, select the port (serial, parallel, or
infrared) you will use for the connection, and then click
Next.
- You will be prompted to grant access to users connecting to the
computer. Choose the appropriate options, click
Next, and then clickFinish.
- On the guest computer, type a name for the connection, and then
click
Next.
- Select the port (serial, parallel, or infrared) you are using for
the connection, and then click
Next.
- Select
Anyone's useorMy use onlyas appropriate.
- Click
Next, and then clickFinish.
USB networking
To connect two computers using Windows 95, 98, Me, 2000, XP, or Vista using USB networking, purchase a USB networking cable from a commercial vendor. Windows XP and Vista may not need drivers, but other versions will. Connect the computers using the purchased cable, and then follow the manufacturer's instructions.
Some of the instructions in this document were adapted from Microsoft's Connect two computers using a crossover cable.
Last modified on October 23, 2009.







