# **HOW TO SHARE FILES BETWEEN A LINUX AND A WINDOWS MACHINE USING ETHERNET CABLE**
In this blog, I will show you step by step o how you can share files between a windows machine and a linux machine.
We will start with windows configuration and then got to linux configuration.
## **WINDOWS CONFIGURATION**
Go to the search bar and search for control panel and open it. In the control panel select *Network and Internet*

A new page will be open and select *Network and Sharing Center*

Now connect the ethernet cable in the linux machine and the windows machine. An Ethernet network connection will appear and you'll click on it.

After Clicking on it a pop up like shown below will show up.

On the pop click on the properties button and another pop up will appear.

Now on the above pop up look for *Internet Protocol Version 4(TCP/IP4)* and select it and after that click on properties.

A configuration page will be show and you'll have to configure it as shown below.

```
192.168.1.2 ---> This will be assigned windows ipadress
255.255.255.0 ---> This will be the mask
192.168.1.1 ---> This will be the gateway and also it'll be the ipaddress for the kali linux machine so take note of that.
```
After that save the configuration and before you quit click on the *change advanced settings* to change a few things so as to be able to share with ease.

After that there a few thing that will be turned of as shown in the pictures below **Look at the below images carefully**


After doing the above two steps save the changes and quit.
We are done with windows configuration.
## **Linux Configuration**
In linux go to edit connection in the network setting area.

Click on the + sign and add a new ethernet connection.

After that the network will be created with name *Ethernet Connection 1* now click on it and press the setting like button at the bottom left. After that navigate to the **IP4 Settings** tab and add the following configuration and save.

We are done with linux configuration now.
### **Sharing of Windows folder**
Now here you go to the windows machine and select the file that you want to share right click and go to properties. At the properties pop up navigate to the sharing tab.

Now click on the share button and a pop up will show. On the pop up there is a search bar with a pull down arrow, click the pull down arrow and select *Everyone* and click the *Add* button.

After Doing so you can select the Everyone and change the permission to *Read and Write so that the user can read the contents of the folder and also write on the folder* and click share.
### **How to access the shared folder in linux**
I would advice using thunar file manager because find it easy to use in such cases.
Open thunar file manager,It can be installed as follows:
```
sudo apt install thunar
```
After installing the thunar file manager open it and navigate to the *Browse Network* folder

In the search bar where it written Network click there and type the following:
```
smb://192.168.1.2/
```
and press enter and the shared folders will be displayed hope you've enjoyed this.
*192.168.1.2 ----> This is the ipaddress of the windows machine*
Thanks!!
Happy new Year Guys!!