Share files on your local network
Unpack and run one executable on Linux, Windows or macOS. Loka opens in your browser and has terminal commands for file transfers. Phones use their own browser to send and receive. Files go directly between devices, even when the internet is down. You don't need an account.
Loka is free and open source under the MIT licence.
Transfers between Lokas are encrypted. Phones and share links need Loka's certificate once.
Drop files or a directory here
2 items selected
- /home/alex/Pictures/weekend-photos
- /home/alex/Documents/itinerary.pdf
192.0.2.21
192.0.2.22
The recipient can open the link in a browser.
meeting-notes.pdf
holiday-video.mp4
How it works
Run Loka on both computers
Loka finds the other computer on your local network.
Pick files and a device
Choose files or a directory, or drop them on the page. Then select the device you want to send them to.
Accept the transfer
Choose where to save the files on the receiving computer. The first time, check that both computers show the same pairing code before you accept.
On a phone, open a link from Loka or scan its QR code.
Features
Encrypted transfers
When both computers run Loka, each remembers the other's certificate after the first transfer. Loka refuses a transfer if that certificate changes. On a phone, install Loka's certificate to let the browser verify your computer.
Send from a phone
Select Receive from a phone and scan the QR code to send files from the phone's browser. The computer asks you to accept the files.
Download links
Create a link or share its QR code. The recipient can download the files in a browser while you're sharing. Directories download as a ZIP.
Find devices on the same network
Loka lists other computers running Loka on your network. If a computer is missing from the list, enter its address.
Files and directories
Send files of any size or a whole directory. Run several transfers at once and see the speed of each.
Keep existing files
If report.pdf already exists, Loka saves the incoming file under
a name like report (1).pdf.
Browser or terminal
The same executable opens the browser page and runs the terminal commands for sending, receiving and sharing files.
Works without internet access
Devices send files directly over your local network. Loka works even if your internet connection drops.
Theme and language
Loka uses your system theme and browser language. Switch between light and dark or English and Ukrainian in the header.
Terminal commands
loka deviceslists devices running Loka on the same network and marks the ones it remembers.-
loka sendsends files and directories to an address. Pipe in text with--stdin. -
loka receiveasks where to save files and prints incoming text. On your phone, scan the QR code from the terminal and choose Text. -
loka shareprints a link and its QR code. It also prints acurlcommand that stops if another device answers.
How Loka compares
| Tool | What you run on a computer | Browser on another device | Where it works | File encryption |
|---|---|---|---|---|
| Loka | One file with a built-in web page and terminal commands | Send and receive in a browser on the same network. You accept each upload to the computer. | Finds other Loka devices on the same network. Works without internet access. | End-to-end encrypted |
| croc | One terminal program | Use a code to send or receive on the croc website. | Local terminal transfers work without internet access. The website and some internet transfers use a remote server to forward files. | End-to-end encrypted |
| st | One terminal program | Send and receive in a browser on the same network. st saves uploads automatically. | Finds other st devices on the same network. Works without internet access. | Plain HTTP |
| LocalSend | Desktop app or separate terminal tool | Send and receive in a browser on the same network. LocalSend also has a separate web app. | Desktop and phone apps work on the same network without internet access. By default, the web app uses a remote server to connect devices. | Encrypts app transfers by default |
| Flashbyte | Desktop app | Flashbyte app on both devices | Local network. Works offline. | Supports TLS |
| Upgopher | One file with a built-in web page | Upload and download from the shared directory. | Connect to the computer on your local network. You can also set up access over the internet. | Optional HTTPS and browser file encryption |
| Dropwire | Desktop app | Dropwire app on both devices | Finds devices on the same network and can send over the internet. A public server forwards files when a direct connection fails. | End-to-end encrypted |
| PeerPayload Connect | Windows or Linux app | Connect app on both devices. It also has an Android app. | Works on the same network or over the internet. A server helps devices connect. If they can't connect directly, a server forwards the files. | End-to-end encrypted |
Questions
Is it free?
Loka is free. You can find the code and its MIT licence on GitHub.
How do I run Loka?
Download the archive for your computer from
Releases and
unpack it. On Windows, double-click loka.exe. On Linux or macOS,
run ./loka from the unpacked directory. To run Loka from any
directory in the terminal, put the executable on your PATH.
If macOS blocks Loka because it doesn't recognise the developer, run this once from the unpacked directory.
xattr -d com.apple.quarantine loka
If you have Go installed, you can also run
go install github.com/sprytnyk/loka@latest.
How do I check a download?
Put SHA256SUMS and SHA256SUMS.asc from the release
alongside the archive. Run this command to check the download.
gpg --verify SHA256SUMS.asc SHA256SUMS && sha256sum --ignore-missing -c SHA256SUMS
How do I send from a phone?
On the computer, select Receive from a phone. Scan the QR code with the phone's camera. Choose files or a directory and send them. The computer asks you to accept. On iPhone and iPad, choose files because their browsers can't select directories.
A computer on several networks shows a QR code for each. Use the one on the same network as the phone.
Why does the phone ask to install a certificate?
The certificate lets your phone's browser check which computer answered. Install it once to open Loka over HTTPS without a warning. If you skip it, Loka still encrypts the connection and the browser warns that it can't verify which device answered.
The certificate only covers local network addresses, so someone can't use it to pose as a website. Loka leaves the computer's trusted certificates alone. The README shows how to check the certificate's fingerprint before you trust it.
What is the pairing code for?
Two computers running Loka show a six-digit code the first time they connect. Compare the codes before accepting. A mismatch means another device could be forwarding the connection. After the first transfer, each Loka remembers the other's certificate and refuses a transfer if it changes. On a phone, the browser verifies your computer using the certificate you install.
The computers can't see each other. What now?
Some Wi-Fi networks, especially guest networks, block connections between devices.
Try another network, or enter the other computer's address and port by hand. On
Windows, allow Loka through the firewall when asked. If the default port is
busy, try loka --port 45000.
Where do received files go?
Loka saves files in the directory you choose when you accept. Incoming files stay in a hidden directory until the transfer finishes. If a name is already in use, Loka adds a number to the incoming file's name. If the transfer fails, Loka removes the temporary files. It remembers the last directory until you quit.
Does it send anything outside my network?
Files go directly between devices on your network. Loka doesn't track you.
It opens its page at http://127.0.0.1, an address that only works
on your computer. PROTOCOL.md
describes how devices connect and transfer files.
Try Loka
Loka is free and open source under the MIT licence.