1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-23 23:54:17 +03:00
Easily and securely send things from one computer to another 🐊 📦
Go to file
2017-10-17 18:45:52 -06:00
connect.go localhost->serverAddress 2017-10-17 18:45:52 -06:00
main.go Rewrite 2017-10-17 18:43:12 -06:00
README.md First commit, forked from wormhole 2017-10-17 09:21:47 -06:00
relay.go Rewrite 2017-10-17 18:43:12 -06:00

personalportal

File transfer over parallel TCP, running a rendevouz server (but you don't need to do any port-forwarding!.

This program pays homage to magic-wormhole except it doesn't have the rendevous server, or the transit relay, or the password-authenticated key exchange. Its not really anything like it, except that its file transfer over TCP. Here you can transfer a file using multiple TCP ports simultaneously.

Normal use

Server computer

Be sure to open up TCP ports 27001-27009 on your port forwarding. Also, get your public address:

$ curl icanhazip.com
X.Y.W.Z

Then get and run wormhole:

$ go get github.com/schollz/wormhole
$ wormhole -file SOMEFILE

personalportal automatically knows to run as a server when the -file flag is set.

Client computer

$ go get github.com/schollz/wormhole
$ wormhole -server X.Y.W.Z

personalportal automatically knows to run as a client when the -server flag is set.

Building for use without flags

For people that don't have or don't want to build from source and don't want to use the command line, you can build it for them to have the flags set automatically! Build the wormhole binary so that it always behaves as a client to a specified server, so that someone just needs to click on it.

cd $GOPATH/src/github.com/schollz/wormhole
go build -ldflags "-s -w -X main.serverAddress=X.Y.W.Z" -o client.exe

Likewise you could do the same for the server:

cd $GOPATH/src/github.com/schollz/wormhole
go build -ldflags "-s -w -X main.fileName=testfile" -o server.exe

License

MIT