hi, in this video i show you how to transfer files between two computers over the internet
I'm glad you guys helped me 471 000 subscribers,
can you help me dream of 500 000 subscriptions
Here I have a desktop and a laptop
I will transfer files from laptop to desktop
Before transferring files over the internet, I will show you how to transfer files over the local network
Then I will continue to show you how to transfer files over the internet between two computers
With the desktop you install Open SSH server
You enter openssh in the search box
You install OpenSSH server for desktop
It will take a while for the installation to complete
By default, the OpenSSH server will stop on Windows so start it up
You enter services in the windows search box
Next you find the openssh-server service
You use the O key to quickly find the OpenSSH server service
By default openssh is stopped, if you want to start you set automatic and start the service
If you see the openssh server is running, it means you have succeeded
Next you configure to allow OpenSSH to pass through the firewall for Windows
Settings privacy and security
Windows security
Firewall and network protection
Advanced settings
Inbound rules
Now you create a new rule for Windows PC to allow openssh through
New rule port
Or simply put, you allow port 22 to go through your computer's firewall
Set the port to 22, the port of the OpenSSH server
You name it so that it's easy to remember if you want to find it later
To be able to transfer files to the desktop, you need this computer's username and password
So if your computer doesn't have a password yet, create one
As in my case, the computer does not have a password so I create a new one
You write down your username and password to transfer files in the next steps
Here my username is netvn, the password I keep secret
I recommend that you set up a static ip address for your computer
Static ip address helps you identify the computer you want to transfer files to
Depending on the range of ip addresses you use, set the ip address accordingly
In this video I set the static ip address as 10.11.32.212
To make sure the settings are applied you restart the desktop
So I installed the OpenSSH server, opened the port on the firewall, started the OpenSSH server service, created a password for the username and set the static ip address
You write down your username, password, ip address to use in the next steps
Now I will transfer files from laptop to desktop over local network
To transfer files I use the winscp application
You just need to enter winscp on Google and download it
With a few simple steps you will finish installing winscp software
You open winscp after the installation is complete
To transfer files to the target computer you need to know the ip address, username and password of that computer
As set up in the previous step, the ip address is 10.11.32.212
the username is netvn and the password I would like to keep secret.
So you have connected to the target computer using SSH
To transfer files, simply drag and drop files between the two windows
The left window is the local computer, the right window is the remote computer
With SSH configuration you can access all folders on the target computer so you can choose any folder to save files
You drag and drop files from left to right to start transferring files
With a local network the file transfer speed will be very fast, you will find the file transfer speed will decrease when transferring over the internet environment
So what do you need to do to transfer files between two computers over the internet environment?
In this video I will show you two ways to do it
Which of the following two ways do you choose, please leave a comment
The first way is port forwarding and dynamic domain configuration on the target computer
I will delete this file to make the file transfer over the internet
I will use the same file in different cases to easily evaluate the file transfer speed
On your router, you configure port 22 forwarding to the target computer
Specifically in this case I forward port 22 to ip address 10.11.32.212
This way you are required to set up a static ip address for the target computer
If you own a static public address, you do not need to configure the dynamic domain name
But when you own the dynamic public ip address, you configure the dynamic domain name
The free dynamic domain name service on Windows I use often is Dynu
I have prepared the domain name netvn.freeddns.org
You download the application to update the public ip address to your computer and install it
This app will automatically update your public ip address if it changes
After installation you log in your account to automatically update the public ip address
As you can see the public address has been updated, every time the public ip address changes,
this software will update for you
And so you don't need to worry about your dynamic public ip address anymore
With the remote computer you still use WinSCP to transfer files
The other thing is that instead of using local ip address you use domain name
Username and password remain the same
After successful connection, you transfer the file just like the previous step I did
You drag and drop files from the left window to the right window
As you can see, the file transfer speed has decreased compared to when transferring files in the local network
File transfer speed also depends on your internet speed
There is another configuration way to transfer files over the internet between two computers without forwarding ports on the router
I will delete the file just transferred to use another way
I will exit public ip address updater app
In fact, you can use both ways and without any errors
To transfer files without port forwarding on the router I use ngrok
In this video I use the free version of ngrok
You create a free account, download ngrok file for Windows PC
Next you extract and run the file after it is unzipped
To connect to your account just copy and paste the command containing your own token
The command is available when you log into your own account
With the ssh service you use the command ngrok tcp 22
ngrok can be used for many other services
And this is the domain name you will get
As you can see, this is quick and simple, but the limitation is that if you want to have your own domain name, you need to use the paid version.
So what do you need to do to transfer files?
With the remote computer you are still using WinSCP to transfer files between the two computers
You enter the domain name obtained when you use the command ngrok tcp 22
There is another point instead of using the default port 22 you replace it with the one you got from the previous step
In my case it's 11089
Username and password remain unchanged
Does the file transfer speed change anything compared to port forwarding on the router?
As far as I see the file transfer speed has not changed compared to the previous way
Which of these two ways would you choose to transfer your files?
You rate its advantages and disadvantages, leave a comment
Thanks for watching, don't forget to like and subscribe