How To Send/Received Files All-Over-World (CLI) -Without Port Forwarding.

 Hi guys welcome back my new post in this post, I will show you what is croc and how can send/received files using croc, and we will also see in this post that one can transfer files from one computer to another computer, without port forwarding with the help of croc tool.


What is Croc

croc tool is a tool that allows you to transfer securely and simple files and folders, from one computer to another computer. croc is a CLI based tool, at the command line, you can transfer files to any computer.

croc tool also special that, this allows you to transfer files without port forwarding, which many tool do not give you this feature. another special thing is the croc, this tool has been supported by Digital Ocean.

Croc file-transfer features

- croc allow any two computers to transfer data (using a relay).

- croc provide end-to-end encryption (using PAKE)

- croc enable easy cross-platform transfer (windows, Mac, Linux, Termux)

- croc allow multiple file transfer 

- croc allows resuming transfer that are interrupted

- croc not needed local server or port forwarding.

- croc ipv6-first with ipv4 fallback

- croc use proxy server, like tor.

Croc Help 

Croc Global Option

--remember (save these setting to reuse next time default: false)

--debug   (toggle debug mode default: false)

--yes    (automatically agree to all prompts default: false)

--stdout  (redirect file to stdout default: false)

--no-compress (disable compression default: false)

--ask   (make sure sender and recipient are prompts default: false)

--local  (force to use only local connection default: false)

--ignore-stdin (ignore piped stdin default: false)

--ip value (set sender ip if known e.g. 10.0.0.1:9090

--relay value (address of the relay default: "142.93.177.120:9009)

--relay6 value (ipv6 address of the relay to receive to file default: "2604.a880.800.c1::14c:1")

--out value (specify an output folder to receiver to file default: ".")

--pass value (password for the relay default: "pass123")

--socks5 value (add a socks5 proxy [$SOCKS5_PROXY]

--help -h (show help Menu default: false)

--version -v (print the version info default: false)

Installation Process..

now let us see how you can install croc and how you can use croc tool in your Linux machine. note I will show it using my Linux operating system, according to the operating system you are using, you will get the command below.

How to install croc in Linux

Step.1. in the first step, you have to install the croc tool in your Linux machine, so that you can use the croc tool, then you can copy the below command. with this help you can install croc tool in your system.

curl https://getcroc.schollz.com | bash



Step.2.
in step 2, we will see the demo how to transfer files with the help if croc, in this demo I am going to use a simple transfer method. I am going to transfer the direct file with the help of croc, then you see in the image below. how did I send.
croc file_name


Step.3.
in step 3 we will see how you can transfer files with the help of password authentication. we will put password authentication, in this case so that receiver can receive the file from the password. in the image below, you see how I have done it.
croc send --code 1234 file_name


Step.4.
in step 4 we will see how you can send multiple files at the same time. which will benefit, the receiver will get multiple files at the same time,so that its time as well as your time will be saved in this process. in the image below, you see how I have completed this process.
croc file_name secound_filename

Croc Install MacOS

now we will see how you can install croc tool inside MacOS besides Linux, so that you can easily transfer files using the Mac operating system. so below I have given you the installation command, you can copy it.

if you have installed Homebrew inside the Mac, you can install croc with the help of it.
brew install croc

apart from this, if you have MacPorts installed inside your Mac operating system, then you can use it to install the croc.

sudo port selfupdate
sudo port install croc

Croc install in Windows

now we see how you can install the croc tool inside your Windows operating system. and from the windows you will be able to transfer the command line files.

if you have scoop installed inside your windows operating system, then you use below command.

scoop install croc

apart from this, if chocolatey is installed inside your windows machine, so with the help of chocolatey, you can install croc tool on your windows machine.

choco install croc

Croc install in Arch Linux

now we see how you can install croc inside the Arch Linux. with the help pacman package manager we will install croc inside Arch Linux operating system.

pacman -S croc

Croc install in Alpine Linux

now let us see how you can install croc tool inside the Alpine Linux. you must install some dependencies before installing croc in Alpine Linux.

apk add bash coreutils
wget -qO- https://getcroc.schollz.com | bash

Croc install in Termux

now we see how you can install croc tool inside Termux. because many users use Termux. it will be helpful for them to use croc, inside Termux to transfer files.

pkg install croc

Croc Install in Gentoo

now we see how you can install croc tool inside Gentoo Linux machine. the package manager of Gentoo is different, so you can install it using the command given below.

emerge net-misc/croc

Build Croc Source Using GO language

now we will see how you can build its source with the help GO language, you will have to install the GO language inside your machine. 

GO111MODULE=on go get -v github.com/schollz/croc/v8

Conclusion

this post is a conclusion of how can install croc tool in Linux, and how can use croc. with the help of croc, you can transfer your files securely, and fast rom one computer to another computer.

apart from this, I have also show you in this post, why croc tool is the best file transfer tool, and how you can transfer file from any computer without port forwarding. so how did this post tell me comment below. I hope you like this post and I will see you in the next post Thanks.

Post a Comment

0 Comments