Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ammarshah/d21b50cd57a27e756c82d16db75f5e87 to your computer and use it in GitHub Desktop.
Save ammarshah/d21b50cd57a27e756c82d16db75f5e87 to your computer and use it in GitHub Desktop.
Transfer Data between Two Laptops (Fedora 42 and Windows 10) using a LAN Cable and FileZilla

Transfer Data between Two Laptops (Fedora 42 and Windows 10) using a LAN Cable and FileZilla

Transferring files between a Fedora 42 machine and a Windows 10 machine over a LAN using FileZilla involves a few key steps. The general process is to set up one machine as an FTP server (Fedora) and the other as an FTP client (Windows). Here's how you can do that:

1. Connect Both Computers via LAN Cable

  • Plug one end of the LAN cable into the Ethernet port of the first laptop.
  • Plug the other end of the LAN cable into the Ethernet port of the second laptop.

2. Configure Network Settings

  1. On Fedora:

    1. Open Settings and go to Network.
    2. Click on the gear icon for your wired connection.
    3. Under the IPv4 tab, switch from Automatic (DHCP) to Manual.
    4. Enter an IP address (for example, 192.168.1.100), a subnet mask (usually 255.255.255.0), and you can leave the gateway blank if you're just connecting the two devices.
    5. Click Apply.
    image
  2. On Windows 10:

    1. Open Control Panel > Network and Internet > Network and Sharing Center.
    2. Click on Change adapter settings from the left panel.
    3. Right-click on your Ethernet adapter and select Properties.
    4. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
    5. Choose Use the following IP address and enter an IP address (e.g., 192.168.1.200), the same subnet mask (255.255.255.0), and leave the gateway blank.
    6. Click OK.
    image
  3. Test the connection by opening a terminal/command prompt on one machine and pinging the other (e.g., on Fedora run ping 192.168.1.200).

    If everything is set up correctly you should see an output similar to below:

    image

3. Set Up FTP Server on Fedora

Warning

Note that FTP is less secure since credentials are sent in plaintext.

  1. Install vsftpd:

    Open a terminal on Fedora and install vsftpd by running the following command:

    sudo dnf install vsftpd

    Once installed, start and enable the vsftpd service to run on boot:

    sudo systemctl start vsftpd
    sudo systemctl enable vsftpd

    Check the status of the FTP server:

    sudo systemctl status vsftpd
  2. Open Firewall for FTP Access:

    If your Fedora system has a firewall enabled, you may need to open port 21 (FTP's default port):

    sudo firewall-cmd --add-service=ftp --permanent
    sudo firewall-cmd --reload
    image

4. Connect from Windows 10 Using FileZilla (FTP Client)

Now, on the Windows 10 machine, you will use FileZilla Client to connect to the Fedora FTP server.

  1. Install FileZilla Client on Windows:

    Download and install FileZilla Client from the official website.

    Once installed, open the FileZilla Client.

  2. Connect to the Fedora FTP Server:

    1. In FileZilla, go to File > Site Manager.

    2. Click on New Site and give it a name (e.g., "Fedora FTP").

    3. Enter connection details:

      • Protocol: FTP - File Transfer Protocol.
      • Host: IP address of your Fedora machine (192.168.1.100).
      • Port: 21 (default FTP port).
      • Encryption: Use explicit FTP over TLS if available (optional).
      • Logon Type: Normal.
      • User: Your Fedora username (the one you use to log in to the Fedora machine).
      • Password: Your Fedora password.
    4. Click Connect.

      FileZilla should now establish an FTP connection to your Fedora machine. Once connected, the right-hand pane in FileZilla will display the Fedora file system (remote site), and the left-hand pane will show your local Windows directories.

5. Transfer Your Data

  1. Navigate to the folders you wish to transfer on either side and simply drag and drop files or folders between your Fedora and Windows machine.
  2. Wait for the file transfer to complete. FileZilla will show the progress in the bottom pane.
  3. If you need to see and transfer hidden files (like dot files/directories in Fedora), go to Server > Force showing hidden files in FileZilla.

That's it! This should allow you to transfer data between your Fedora 42 and Windows 10 machine over a LAN cable using FileZilla.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment