Skip to content
/ sf Public

Send Files in LAN quickly

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Lonami/sf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sf

Send Files in LAN quickly.

Installation

cargo install --git https://github.com/lonami/sf

…or build and move the artifact somewhere in your PATH.

Usage

sf: send files in LAN quickly

usage (receive files):
  sf [OPTIONS...]

available OPTIONS:
  -h, --help: display this message and exit
  -s, --strip-prefix: strip the common prefix from the received file paths
    this is useful when receiving absolute paths from a drive you don't have,
    since the drive portion will be removed as long as all paths share it
    default = false

usage (send files):
  sf <IP> [FILES...]

  IP must be either an IP address or `auto' to enable server discovery

How does the automatic server discovery work?

The <IP> can be set to auto. The receiver (server) will continuously broadcast UDP packets in the local network with its IP address. The sender (client) will listen for those UDP packets when the <IP> is set to auto in order to find out the server's IP. It will then connect to it and proceed as if the server IP had been manually provided.

Security considerations

There is no encryption and no checks to the file paths are made. The tool should only be used in LAN you control to quickly move files around computers.

Beware the paths are received in the same way they were sent, i.e. sending absolute paths will cause the receiver to receive absolute paths too, similar with relative paths going to parent directories (try to avoid it if possible).

License

The program is licensed under either of

at your option.

About

Send Files in LAN quickly

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages