You are on page 1of 10

Riphah International University, Islamabad

Faculty of Computing
Riphah International University, Islamabad
Faculty of Computing (WISH)
Fall-19
Computer Communications and Network Lab
LAB - 3
Course Computer Communications and Network Lab
Course Instructor Ms. Warda Rasul
Credit Hour 1
Lab No. 3
Lab Subject
Share Files between Two Computers Using LAN Cable

Lab Objective Are you trying to figure out how to share files between two laptops
using Wifi? Here, a step-by-step tutorial shows you how to share
files between two laptops wirelessly.
Tools Lab Manual, PC or Laptop

Step 1

Connect both computers to a LAN cable. You can use any LAN cable

Step 2

OK, now you have to turn on the sharing options on both computers.

Search for Control Panel in the start menu and open it. Here, go to “Network and Internet > Network and
Sharing Center > Advanced sharing settings.”

Here, select the radio option “turn on network detection” under public folder sharing. Now, select the radio
option “turn off password protected sharing.” This way, you don’t have to type in your password each and
every time you are trying to access shared folders from another computer.

However, this is also a significant security risk. So, make sure to select “Turn on password protected sharing”
once you are done transferring the files via ethernet cable.
Step 3

Now we should bring both the computers on to the same network.

1. Open Control Panel > Network and Sharing Center.


2. You will see Local Area Connection or Ethernet.

3. Right-click it and go to its properties.

4. You will see TCP/ IPv4 option there. Select it and then click on the Properties button.
5. In the properties window, select the option “Use the following IP address.” Now, put the following values
on 1st computer

 IP Address: 192.168.1.1

 Subnet mask: 225.225.225.0

 Default gateway: 192.168.1.2

Of course, it’s not necessary you use these IP addresses as long as the IP addresses are in same range, you
are good to go. If you are not sure what this all means, better stick with this example.
On the second computer, open the IPv4 properties and enter the following values.

 IP address: 192.168.1.2

 Subnet mask: 225.225.225.0

 Default gateway: 192.168.1.1


Basically, what we are doing is keeping the subnet mask same and changing the IP address.

If everything works right, you will see the two computer names in the Networks panel.

Note

You can assign a unique static IP address in the range of 192.168.0.2 to 192.168.0.254.
Step 4

Assuming that you have connected the cable properly, enabled the sharing options, and configured the IP
addresses, it is now the time to send files from one computer to another. For that, you first need to share the
target folder on LAN.

1. Select the folder you want to share and right-click on it.

2. From the context menu, navigate to “Share with” and select the option “Specific People.”
3. In the File Sharing window, select Everyone from the drop-down menu, click on the “Add” button next to
it and then click on the “Share” button.
That’s it. Just go back to the Networks panel from the computer where you want to
access the file and click on the other computer’s name. Here, you will see the folder you
just shared. From there, just open the folder and transfer the files and folders as you
normally do. i.e, by copy and paste.

Video Tutorial

If you still have any doubt understanding something in the article then watch this video
on how to share files using LAN cable. I am sure this will help. In fact, a huge number of
people have already commented on YouTube that this video helped them to set up the
connection properly and successfully.
Reference: https://techwiser.com/how-to-connect-pc-to-pc-lan-cable/
Lab task

1. What is Ethernet cable? What Ethernet cable is most commonly used in LAN
network? 03
2. What is a LAN (local area network)? When and why to use LAN cable to send files
from one computer to another? 04
3. What is a computer network? A few important terminologies we come across
networking concepts? 03
4. How Does Lan Work? What is meant by 127.0.0.1 and localhost? 03
5. Explain the characteristics of networking? 02
Total Marks 15

You might also like