croc icon indicating copy to clipboard operation
croc copied to clipboard

panic: EOF - sending data from windows to windows

Open tarungka opened this issue 3 years ago • 6 comments

Issue

I was trying to send files between my two windows machines and I am getting the following error.

I ran the following on Powershell on windows 10.

> cat .\LICENSE | .\croc.exe send --code test-test
Sending 'stdin' (1.1 kB)
Code is: test-test
On the other computer run

croc test-test
panic: EOF

goroutine 11 [running]:
github.com/schollz/croc/v9/src/croc.(*Client).processMessagePake.func1(0x0)
        /home/zns/go/src/github.com/schollz/croc/src/croc/croc.go:960 +0x4f5
created by github.com/schollz/croc/v9/src/croc.(*Client).processMessagePake
        /home/zns/go/src/github.com/schollz/croc/src/croc/
> .\croc.exe test-test
securing channel...2022/02/22 22:13:24 could not secure channel

Whereas when I used the WSL(which I downloaded the linux version for) I am not getting this issue.

Version

croc version v9.5.1-b0e7d4d

tarungka avatar Feb 22 '22 16:02 tarungka

I cannot reproduce using windows powershell:

>cat .\test.txt | croc send --code test-test                                         Sending 'stdin' (16 B)
Code is: test-test
On the other computer run

croc test-test

Sending (->192.168.0.113:60884)
 100% |████████████████████| (16/16 B, 15.622 kB/s)

please answer the following:

  1. what is the version of the croc for sender and receiver
  2. what is the os for sender and receiver
  3. are you using LAN or public relay?
  4. are you using your own relay?
  5. how did you install croc?
  6. is it reproducible for you (does it happen 3 times in a row)?

schollz avatar Feb 22 '22 16:02 schollz

  1. Version for sender and receiver are the same croc version v9.5.1-b0e7d4d which I downloaded from the official release.
  2. The OS for the sender and receiver is Windows 10 Home.
  3. I am using the default relay.
  4. No, I am not using my own relay, it's the default relay.
  5. I downloaded the binaries from the above link(release page).
  6. Yes, I am getting the same error every time, irrespective of file size.

tarungka avatar Feb 22 '22 17:02 tarungka

Same exact results on Windows 11 Pro -> Windows 11 Pro through the 64 bit build for Windows

Hinkiii avatar Mar 30 '22 08:03 Hinkiii

Same from Windows 11 Pro for Workstation to Raspberry Pi 4B in same LAN, public/selfhosted relay both throw out error: sender:

panic: EOF

goroutine 75 [running]:
github.com/schollz/croc/v9/src/croc.(*Client).processMessagePake.func1(0x0)
        /home/zns/go/src/github.com/schollz/croc/src/croc/croc.go:1121 +0x4f5
created by github.com/schollz/croc/v9/src/croc.(*Client).processMessagePake
        /home/zns/go/src/github.com/schollz/croc/src/croc/croc.go:1101 +0x7b8

receiver:

securing channel...2022/07/04 21:17:51 could not secure channel

However, on the exact same sender machine sending the exact same file, a VPS receiver (not same LAN of course) IS working fine.

All three machines are on croc version v9.5.6-b7e4a73 I personnally assume that this is a LAN transfer related issue.

66Leo66 avatar Jul 04 '22 13:07 66Leo66

Also getting this transferring from Windows 11 to a Linux machine (Steam Deck) on LAN.

It worked before I upgraded (on W10).

beeequeue avatar Aug 28 '22 20:08 beeequeue

I believe I have encountered this issue, and I believe I may be able to provide some insight.

Hypothesis

There is a bug in (relating to?) the local relay when sending from a Windows machines (incl. 10 and 11 based on above comments), consistently reproducible on the latest croc version v9.6.0-0e93f1e.

My rudimentary log analysis (i.e., without a proper understanding of how croc works) leads me to believe that connections from the local relay get handled improperly, repeating the same process over and over instead of advancing the flow.

--no-local is an effective workaround.

Observed Behavior

Sender:

> croc --debug send --text "hello" --no-multi --code "161519"
[debug] 01:25:54 cli.go:142: debug mode on
[debug] 01:25:54 croc.go:180: options: {IsSender:true SharedSecret:161519 Debug:true RelayAddress:5.161.69.143:9009 RelayAddress6: RelayPorts:[9009 9010 9011 9012 9013] RelayPassword:pass123 Stdout:false NoPrompt:false NoMultiplexing:true DisableLocal:false OnlyLocal:false IgnoreStdin:false Ask:false SendingText:true NoCompress:false IP: Overwrite:false Curve:p256 HashAlgorithm:xxhash ThrottleUpload: ZipFolder:false}
[debug] 01:25:54 croc.go:395: hashed C:\Users\chance.harrison\Downloads\croc-stdin-2887402950 to 26c7827d889f6da3 using xxhash
[debug] 01:25:54 croc.go:400: file 0 info: {Name:croc-stdin-2887402950 FolderRemote:./ FolderSource:C:\Users\chance.harrison\Downloads Hash:[38 199 130 125 136 159 109 163] Size:5 ModTime:2022-09-15 01:25:54.5875163 -0700 PDT IsCompressed:false IsEncrypted:false Symlink: Mode:-rw-rw-rw- TempFile:false}
Sending 0 files (5 B)[debug]    01:25:54 croc.go:404: longestFilename: 21
Sending 'text' (5 B)
Code is: 161519
On the other computer run

croc 161519
[debug] 01:25:55 tcp.go:59: starting with password 'pass123'
[debug] 01:25:55 croc.go:561: host: '5.161.69.143', port: '9009'
[info]  2022/09/15 01:25:55 starting TCP server on 0.0.0.0:9009
[debug] 01:25:55 tcp.go:59: starting with password 'pass123'
[debug] 01:25:55 tcp.go:59: starting with password 'pass123'
[debug] 01:25:55 tcp.go:59: starting with password 'pass123'
[info]  2022/09/15 01:25:55 starting TCP server on 0.0.0.0:9011
[debug] 01:25:55 tcp.go:59: starting with password 'pass123'
[debug] 01:25:55 croc.go:567: got host '5.161.69.143' and port '9009'
[info]  2022/09/15 01:25:55 starting TCP server on 0.0.0.0:9010
[debug] 01:25:55 croc.go:569: trying connection to 5.161.69.143:9009
[info]  2022/09/15 01:25:55 starting TCP server on 0.0.0.0:9013
[debug] 01:25:55 comm.go:55: dialing to 5.161.69.143:9009 with timelimit 5s
[info]  2022/09/15 01:25:55 starting TCP server on 0.0.0.0:9012
[debug] 01:25:55 comm.go:64: connected to '5.161.69.143:9009'
[debug] 01:25:55 tcp.go:475: strong key: 9a5d6f00ac97779213f065c5dd5aaf7b1ee09b7a14f50e2030e2bb980aa5d270
[debug] 01:25:55 tcp.go:489: sending password
[debug] 01:25:55 tcp.go:500: waiting for first ok
[debug] 01:25:55 tcp.go:518: sending room
[debug] 01:25:55 tcp.go:529: waiting for room confirmation
[debug] 01:25:55 tcp.go:545: all set
[debug] 01:25:55 croc.go:586: banner: 9010,9011,9012,9013
[debug] 01:25:55 croc.go:587: connection established: &{connection:0xc000006220}
[debug] 01:25:55 croc.go:589: waiting for bytes
[debug] 01:25:55 croc.go:614: got ping
[debug] 01:25:55 croc.go:589: waiting for bytes
[debug] 01:25:55 croc.go:479: establishing connection
[debug] 01:25:55 comm.go:55: dialing to localhost:9009 with timelimit 30s
[debug] 01:25:55 comm.go:64: connected to 'localhost:9009'
[debug] 01:25:55 tcp.go:124: client 127.0.0.1:64649 connected
[debug] 01:25:55 tcp.go:187: Abytes: {"Role":0,"Uᵤ":793136080485469241208656611513609866400481671853,"Uᵥ":18458907634222644275952014841865282643645472623913459400556233196838128612339,"Vᵤ":1086685267857089638167386722555472967068468061489,"Vᵥ":19593504966619549205903364028255899745298716108914514072669075231742699650911,"Xᵤ":11639110072951006452773331911118504634547765455855348735245922141672759612194,"Xᵥ":27401756269290968088943737452483355466442770696263961511212200994970383798150,"Yᵤ":null,"Yᵥ":null,"P":null,"Pw":null,"Vpwᵤ":null,"Vpwᵥ":null,"Upwᵤ":null,"Upwᵥ":null,"Aα":null,"Aαᵤ":null,"Aαᵥ":null,"Zᵤ":null,"Zᵥ":null,"K":null}
[debug] 01:25:55 tcp.go:206: strongkey: 2dd5162f19f6be382abfdc64ab84079a07e789d37340108cc531686bea9df154
[debug] 01:25:55 tcp.go:475: strong key: 2dd5162f19f6be382abfdc64ab84079a07e789d37340108cc531686bea9df154
[debug] 01:25:55 tcp.go:489: sending password
[debug] 01:25:55 tcp.go:218: waiting for password
[debug] 01:25:55 tcp.go:500: waiting for first ok
[debug] 01:25:55 tcp.go:241: sending '9010,9011,9012,9013'
[debug] 01:25:55 tcp.go:518: sending room
[debug] 01:25:55 tcp.go:252: waiting for answer
[debug] 01:25:55 tcp.go:529: waiting for room confirmation
[debug] 01:25:55 tcp.go:545: all set
[debug] 01:25:55 croc.go:482: banner: 9010,9011,9012,9013
[debug] 01:25:55 croc.go:489: local connection established: &{connection:0xc000006040}
[debug] 01:25:55 tcp.go:283: room 161 has 1
[debug] 01:25:55 tcp.go:128: room: 161
[debug] 01:25:55 tcp.go:129: err: <nil>
[debug] 01:25:55 tcp.go:142: checking connection of room 161 for &{connection:0xc000202008}
[debug] 01:25:55 tcp.go:150: room: {first:0xc0003b2000 second:<nil> opened:{wall:13889336842534531628 ext:1377973501 loc:0xedcb80} full:false}
[debug] 01:25:55 croc.go:495: got ping
[debug] 01:25:56 croc.go:614: got ping
[debug] 01:25:56 croc.go:589: waiting for bytes
[debug] 01:25:56 tcp.go:142: checking connection of room 161 for &{connection:0xc000202008}
[debug] 01:25:56 tcp.go:150: room: {first:0xc0003b2000 second:<nil> opened:{wall:13889336842534531628 ext:1377973501 loc:0xedcb80} full:false}
[debug] 01:25:56 croc.go:495: got ping
[debug] 01:25:57 croc.go:589: waiting for bytes
[debug] 01:25:57 tcp.go:124: client 192.168.1.20:33504 connected
[debug] 01:25:57 tcp.go:187: Abytes: {"Role":0,"Uᵤ":793136080485469241208656611513609866400481671853,"Uᵥ":18458907634222644275952014841865282643645472623913459400556233196838128612339,"Vᵤ":1086685267857089638167386722555472967068468061489,"Vᵥ":19593504966619549205903364028255899745298716108914514072669075231742699650911,"Xᵤ":9357068653377875289465295350236482970359067301041371156331948396550041593112,"Xᵥ":12056585615569736168062758765347400967626072441919537185248267750678303334956,"Yᵤ":null,"Yᵥ":null,"P":null,"Pw":null,"Vpwᵤ":null,"Vpwᵥ":null,"Upwᵤ":null,"Upwᵥ":null,"Aα":null,"Aαᵤ":null,"Aαᵥ":null,"Zᵤ":null,"Zᵥ":null,"K":null}
[debug] 01:25:57 tcp.go:206: strongkey: 387021812cdd77d9067619621c63b25adfe934025ea8f03ed38702c2bd3a5fd8
[debug] 01:25:57 tcp.go:218: waiting for password
[debug] 01:25:57 tcp.go:241: sending '9010,9011,9012,9013'
[debug] 01:25:57 tcp.go:252: waiting for answer
[debug] 01:25:57 tcp.go:299: room 161 has 2
[debug] 01:25:57 tcp.go:315: starting pipes
[debug] 01:25:57 croc.go:501: exchanged header message
[debug] 01:25:57 croc.go:505: no multiplexing
[debug] 01:25:57 croc.go:866: ready
[debug] 01:25:57 message.go:80: read pake message (unencrypted)
[debug] 01:25:57 croc.go:1099: received pake payload
[debug] 01:25:57 croc.go:1104: using curve p256
[debug] 01:25:57 croc.go:1118: generating salt
[debug] 01:25:57 croc.go:1124: sender sending pake+salt
[debug] 01:25:57 message.go:61: writing pake message (unencrypted)
[debug] 01:25:57 croc.go:1146: generated key = 5882b9d19db5bdfeb6c69059aa1a85d8546f0142328e653bde9f1270ece01d53 with salt 2f5c5d0ea3892058
[debug] 01:25:57 croc.go:1152: port: [9010]
[debug] 01:25:57 croc.go:1166: connecting to localhost:9010
[debug] 01:25:57 comm.go:55: dialing to localhost:9010 with timelimit 30s
[debug] 01:25:57 tcp.go:124: client 192.168.1.20:53184 connected
[debug] 01:25:57 tcp.go:124: client 192.168.1.20:32926 connected
[debug] 01:25:57 tcp.go:124: client 192.168.1.20:54254 connected
[debug] 01:25:57 tcp.go:124: client 192.168.1.20:37900 connected
[debug] 01:25:57 tcp.go:187: Abytes: {"Role":0,"Uᵤ":793136080485469241208656611513609866400481671853,"Uᵥ":18458907634222644275952014841865282643645472623913459400556233196838128612339,"Vᵤ":1086685267857089638167386722555472967068468061489,"Vᵥ":19593504966619549205903364028255899745298716108914514072669075231742699650911,"Xᵤ":13261040198223557107401822385750742532454380708486444873425521360606375456804,"Xᵥ":26961557320864409425975343113389723919577119184022770154152597808658927226449,"Yᵤ":null,"Yᵥ":null,"P":null,"Pw":null,"Vpwᵤ":null,"Vpwᵥ":null,"Upwᵤ":null,"Upwᵥ":null,"Aα":null,"Aαᵤ":null,"Aαᵥ":null,"Zᵤ":null,"Zᵥ":null,"K":null}
[debug] 01:25:57 tcp.go:187: Abytes: {"Role":0,"Uᵤ":793136080485469241208656611513609866400481671853,"Uᵥ":18458907634222644275952014841865282643645472623913459400556233196838128612339,"Vᵤ":1086685267857089638167386722555472967068468061489,"Vᵥ":19593504966619549205903364028255899745298716108914514072669075231742699650911,"Xᵤ":6248048564032141263755039988688234084958558549267676625131985039995726391673,"Xᵥ":23492147226591573292742393177962918976186377458980294002267416205261092556833,"Yᵤ":null,"Yᵥ":null,"P":null,"Pw":null,"Vpwᵤ":null,"Vpwᵥ":null,"Upwᵤ":null,"Upwᵥ":null,"Aα":null,"Aαᵤ":null,"Aαᵥ":null,"Zᵤ":null,"Zᵥ":null,"K":null}
[debug] 01:25:57 tcp.go:187: Abytes: {"Role":0,"Uᵤ":793136080485469241208656611513609866400481671853,"Uᵥ":18458907634222644275952014841865282643645472623913459400556233196838128612339,"Vᵤ":1086685267857089638167386722555472967068468061489,"Vᵥ":19593504966619549205903364028255899745298716108914514072669075231742699650911,"Xᵤ":24860966986456068762783804798663664184510417793768375433525994937540138036633,"Xᵥ":15738272206089371563817368663252937415984000235853040836395731959646056024803,"Yᵤ":null,"Yᵥ":null,"P":null,"Pw":null,"Vpwᵤ":null,"Vpwᵥ":null,"Upwᵤ":null,"Upwᵥ":null,"Aα":null,"Aαᵤ":null,"Aαᵥ":null,"Zᵤ":null,"Zᵥ":null,"K":null}
[debug] 01:25:57 tcp.go:187: Abytes: {"Role":0,"Uᵤ":793136080485469241208656611513609866400481671853,"Uᵥ":18458907634222644275952014841865282643645472623913459400556233196838128612339,"Vᵤ":1086685267857089638167386722555472967068468061489,"Vᵥ":19593504966619549205903364028255899745298716108914514072669075231742699650911,"Xᵤ":8281895149471464171725705448115506742875930506656787497987813289605440279675,"Xᵥ":655656165325181992074046968089455179402558285597344100418458856152714827773,"Yᵤ":null,"Yᵥ":null,"P":null,"Pw":null,"Vpwᵤ":null,"Vpwᵥ":null,"Upwᵤ":null,"Upwᵥ":null,"Aα":null,"Aαᵤ":null,"Aαᵥ":null,"Zᵤ":null,"Zᵥ":null,"K":null}
[debug] 01:25:57 tcp.go:206: strongkey: cc9b173de52a9932140e4593f83ac047246eeccb9cfd129f180bbac123c169d5
[debug] 01:25:57 tcp.go:206: strongkey: bc8d1731c1a6d1e87b90212386e90517ff787f420429874ed987dd9486c0a06e
[debug] 01:25:57 tcp.go:206: strongkey: b2367f789656554c5f165219b0af63e03f10bac31444411643226419f3c7c96c
[debug] 01:25:57 tcp.go:206: strongkey: aba5f7eaf4b6f3f411b5185ceb942672ca3960b10885cf9acb528c6d167ac740
[debug] 01:25:57 tcp.go:218: waiting for password
[debug] 01:25:57 tcp.go:241: sending '9010,9011,9012,9013'
[debug] 01:25:57 tcp.go:252: waiting for answer
[debug] 01:25:57 tcp.go:218: waiting for password
[debug] 01:25:57 tcp.go:283: room 240dd8-3 has 1
[debug] 01:25:57 tcp.go:128: room: 240dd8-3
[debug] 01:25:57 tcp.go:129: err: <nil>
[debug] 01:25:57 tcp.go:218: waiting for password
[debug] 01:25:57 tcp.go:241: sending '9010,9011,9012,9013'
[debug] 01:25:57 tcp.go:218: waiting for password
[debug] 01:25:57 tcp.go:142: checking connection of room 240dd8-3 for &{connection:0xc000400008}
[debug] 01:25:57 tcp.go:252: waiting for answer
[debug] 01:25:57 tcp.go:150: room: {first:0xc0004ee000 second:<nil> opened:{wall:13889336844303868576 ext:2999826801 loc:0xedcb80} full:false}
[debug] 01:25:57 tcp.go:241: sending '9010,9011,9012,9013'
[debug] 01:25:57 tcp.go:241: sending '9010,9011,9012,9013'
[debug] 01:25:57 tcp.go:252: waiting for answer
[debug] 01:25:57 tcp.go:252: waiting for answer
[debug] 01:25:57 tcp.go:283: room 240dd8-1 has 1
[debug] 01:25:57 tcp.go:128: room: 240dd8-1
[debug] 01:25:57 tcp.go:129: err: <nil>
[debug] 01:25:57 tcp.go:142: checking connection of room 240dd8-1 for &{connection:0xc0000ce080}
[debug] 01:25:57 tcp.go:150: room: {first:0xc0003b2020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:25:57 tcp.go:283: room 240dd8-2 has 1
[debug] 01:25:57 tcp.go:128: room: 240dd8-2
[debug] 01:25:57 tcp.go:129: err: <nil>
[debug] 01:25:57 tcp.go:142: checking connection of room 240dd8-2 for &{connection:0xc00030e000}
[debug] 01:25:57 tcp.go:150: room: {first:0xc000146020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:25:57 tcp.go:283: room 240dd8-0 has 1
[debug] 01:25:57 tcp.go:128: room: 240dd8-0
[debug] 01:25:57 tcp.go:129: err: <nil>
[debug] 01:25:57 tcp.go:142: checking connection of room 240dd8-0 for &{connection:0xc000202010}
[debug] 01:25:57 tcp.go:150: room: {first:0xc000388030 second:<nil> opened:{wall:13889336844311483776 ext:3007442001 loc:0xedcb80} full:false}
[debug] 01:25:57 comm.go:128: initial read error: EOF
[debug] 01:25:57 croc.go:592: [&{connection:0xc000006220}] had error: EOF
[debug] 01:25:57 croc.go:617: [&{connection:0xc000006220}] got weird bytes: []
[debug] 01:25:57 croc.go:641: error from errchan: gracefully refusing using the public relay
[debug] 01:25:57 comm.go:64: connected to 'localhost:9010'
[debug] 01:25:57 tcp.go:142: checking connection of room 161 for &{connection:0xc000202008}
[debug] 01:25:57 tcp.go:150: room: {first:0xc0003b2000 second:0xc000388290 opened:{wall:13889336842534531628 ext:1377973501 loc:0xedcb80} full:true}
[debug] 01:25:57 tcp.go:152: rooms ready
[debug] 01:25:58 tcp.go:142: checking connection of room 240dd8-3 for &{connection:0xc000400008}
[debug] 01:25:58 tcp.go:150: room: {first:0xc0004ee000 second:<nil> opened:{wall:13889336844303868576 ext:2999826801 loc:0xedcb80} full:false}
[debug] 01:25:58 tcp.go:142: checking connection of room 240dd8-2 for &{connection:0xc00030e000}
[debug] 01:25:58 tcp.go:142: checking connection of room 240dd8-1 for &{connection:0xc0000ce080}
[debug] 01:25:58 tcp.go:150: room: {first:0xc000146020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:25:58 tcp.go:150: room: {first:0xc0003b2020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:25:58 tcp.go:142: checking connection of room 240dd8-0 for &{connection:0xc000202010}
[debug] 01:25:58 tcp.go:150: room: {first:0xc000388030 second:<nil> opened:{wall:13889336844311483776 ext:3007442001 loc:0xedcb80} full:false}
[debug] 01:25:59 tcp.go:142: checking connection of room 240dd8-1 for &{connection:0xc0000ce080}
[debug] 01:25:59 tcp.go:150: room: {first:0xc0003b2020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:25:59 tcp.go:142: checking connection of room 240dd8-2 for &{connection:0xc00030e000}
[debug] 01:25:59 tcp.go:150: room: {first:0xc000146020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:25:59 tcp.go:142: checking connection of room 240dd8-3 for &{connection:0xc000400008}
[debug] 01:25:59 tcp.go:142: checking connection of room 240dd8-0 for &{connection:0xc000202010}
[debug] 01:25:59 tcp.go:150: room: {first:0xc0004ee000 second:<nil> opened:{wall:13889336844303868576 ext:2999826801 loc:0xedcb80} full:false}
[debug] 01:25:59 tcp.go:150: room: {first:0xc000388030 second:<nil> opened:{wall:13889336844311483776 ext:3007442001 loc:0xedcb80} full:false}
[debug] 01:26:00 tcp.go:142: checking connection of room 240dd8-3 for &{connection:0xc000400008}
[debug] 01:26:00 tcp.go:150: room: {first:0xc0004ee000 second:<nil> opened:{wall:13889336844303868576 ext:2999826801 loc:0xedcb80} full:false}
[debug] 01:26:00 tcp.go:142: checking connection of room 240dd8-0 for &{connection:0xc000202010}
[debug] 01:26:00 tcp.go:150: room: {first:0xc000388030 second:<nil> opened:{wall:13889336844311483776 ext:3007442001 loc:0xedcb80} full:false}
[debug] 01:26:00 tcp.go:142: checking connection of room 240dd8-1 for &{connection:0xc0000ce080}
[debug] 01:26:00 tcp.go:142: checking connection of room 240dd8-2 for &{connection:0xc00030e000}
[debug] 01:26:00 tcp.go:150: room: {first:0xc0003b2020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:26:00 tcp.go:150: room: {first:0xc000146020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:26:01 tcp.go:142: checking connection of room 240dd8-3 for &{connection:0xc000400008}
[debug] 01:26:01 tcp.go:150: room: {first:0xc0004ee000 second:<nil> opened:{wall:13889336844303868576 ext:2999826801 loc:0xedcb80} full:false}
[debug] 01:26:01 tcp.go:142: checking connection of room 240dd8-1 for &{connection:0xc0000ce080}
[debug] 01:26:01 tcp.go:150: room: {first:0xc0003b2020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:26:01 tcp.go:142: checking connection of room 240dd8-0 for &{connection:0xc000202010}
[debug] 01:26:01 tcp.go:150: room: {first:0xc000388030 second:<nil> opened:{wall:13889336844311483776 ext:3007442001 loc:0xedcb80} full:false}
[debug] 01:26:01 tcp.go:142: checking connection of room 240dd8-2 for &{connection:0xc00030e000}
[debug] 01:26:01 tcp.go:150: room: {first:0xc000146020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:26:02 tcp.go:142: checking connection of room 240dd8-1 for &{connection:0xc0000ce080}
[debug] 01:26:02 tcp.go:142: checking connection of room 240dd8-0 for &{connection:0xc000202010}
[debug] 01:26:02 tcp.go:142: checking connection of room 240dd8-2 for &{connection:0xc00030e000}
[debug] 01:26:02 tcp.go:150: room: {first:0xc000146020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:26:02 tcp.go:142: checking connection of room 240dd8-3 for &{connection:0xc000400008}
[debug] 01:26:02 tcp.go:150: room: {first:0xc0004ee000 second:<nil> opened:{wall:13889336844303868576 ext:2999826801 loc:0xedcb80} full:false}
[debug] 01:26:02 tcp.go:150: room: {first:0xc0003b2020 second:<nil> opened:{wall:13889336844308447776 ext:3004406001 loc:0xedcb80} full:false}
[debug] 01:26:02 tcp.go:150: room: {first:0xc000388030 second:<nil> opened:{wall:13889336844311483776 ext:3007442001 loc:0xedcb80} full:false}
[debug] 01:26:02 comm.go:128: initial read error: EOF
[debug] 01:26:02 tcp.go:462: EOF
panic: EOF

goroutine 147 [running]:
github.com/schollz/croc/v9/src/croc.(*Client).processMessagePake.func1(0x0)
        /home/zns/go/src/github.com/schollz/croc/src/croc/croc.go:1173 +0x4f5
created by github.com/schollz/croc/v9/src/croc.(*Client).processMessagePake
        /home/zns/go/src/github.com/schollz/croc/src/croc/croc.go:1153 +0x7b8

Receiver:

# croc --debug 161519
[debug] 01:25:56 cli.go:142: debug mode on
[debug] 01:25:56 croc.go:180: options: {IsSender:false SharedSecret:161519 Debug:true RelayAddress:5.161.69.143:9009 RelayAddress6:[2a01:4ff:f0:23c2::14c:1]:9009 RelayPorts:[] RelayPassword:pass123 Stdout:false NoPrompt:false NoMultiplexing:false DisableLocal:false OnlyLocal:false IgnoreStdin:false Ask:false SendingText:false NoCompress:false IP: Overwrite:false Curve:p256 HashAlgorithm: ThrottleUpload: ZipFolder:false}
connecting...[debug]    01:25:56 croc.go:682: attempt to discover peers
[debug] 01:25:56 croc.go:747: discoveries: []
[debug] 01:25:56 croc.go:748: establishing connection
[debug] 01:25:56 croc.go:764: got host '2a01:4ff:f0:23c2::14c:1' and port '9009'
[debug] 01:25:56 croc.go:766: trying connection to [2a01:4ff:f0:23c2::14c:1]:9009
[debug] 01:25:56 comm.go:55: dialing to [2a01:4ff:f0:23c2::14c:1]:9009 with timelimit 200ms
[debug] 01:25:56 comm.go:60: comm.NewConnection failed: dial tcp [2a01:4ff:f0:23c2::14c:1]:9009: connect: network is unreachable
[debug] 01:25:56 tcp.go:445: comm.NewConnection failed: dial tcp [2a01:4ff:f0:23c2::14c:1]:9009: connect: network is unreachable
[debug] 01:25:56 croc.go:772: could not establish '[2a01:4ff:f0:23c2::14c:1]:9009'
[debug] 01:25:56 croc.go:764: got host '5.161.69.143' and port '9009'
[debug] 01:25:56 croc.go:766: trying connection to 5.161.69.143:9009
[debug] 01:25:56 comm.go:55: dialing to 5.161.69.143:9009 with timelimit 5s
[debug] 01:25:56 comm.go:64: connected to '5.161.69.143:9009'
[debug] 01:25:56 tcp.go:475: strong key: 5160f03ad905f171147e5b26b9ae22577a47580c69bf31fdfff1bfbeabde6d8b
[debug] 01:25:56 tcp.go:489: sending password
[debug] 01:25:56 tcp.go:500: waiting for first ok
[debug] 01:25:56 tcp.go:518: sending room
[debug] 01:25:56 tcp.go:529: waiting for room confirmation
[debug] 01:25:56 tcp.go:545: all set
[debug] 01:25:56 croc.go:779: receiver connection established: &{connection:0xc0000101b8}
[debug] 01:25:56 croc.go:780: banner: 9010,9011,9012,9013
[debug] 01:25:56 croc.go:785: sending ips?
[debug] 01:25:57 croc.go:794: ips data: ["9009","169.254.131.78","192.168.56.1","169.254.250.63","169.254.136.229","192.168.1.128","169.254.68.211"]
[debug] 01:25:57 croc.go:804: ipv4Add4: 169.254.131.78, ipv4Net: 169.254.131.0/24, err: <nil>
[debug] 01:25:57 croc.go:815: 169.254.131.78 is not a local IP, skipping
[debug] 01:25:57 croc.go:804: ipv4Add4: 192.168.56.1, ipv4Net: 192.168.56.0/24, err: <nil>
[debug] 01:25:57 croc.go:815: 192.168.56.1 is not a local IP, skipping
[debug] 01:25:57 croc.go:804: ipv4Add4: 169.254.250.63, ipv4Net: 169.254.250.0/24, err: <nil>
[debug] 01:25:57 croc.go:815: 169.254.250.63 is not a local IP, skipping
[debug] 01:25:57 croc.go:804: ipv4Add4: 169.254.136.229, ipv4Net: 169.254.136.0/24, err: <nil>
[debug] 01:25:57 croc.go:815: 169.254.136.229 is not a local IP, skipping
[debug] 01:25:57 croc.go:804: ipv4Add4: 192.168.1.128, ipv4Net: 192.168.1.0/24, err: <nil>
[debug] 01:25:57 comm.go:55: dialing to 192.168.1.128:9009 with timelimit 500ms
[debug] 01:25:57 comm.go:64: connected to '192.168.1.128:9009'
[debug] 01:25:57 tcp.go:475: strong key: 387021812cdd77d9067619621c63b25adfe934025ea8f03ed38702c2bd3a5fd8
[debug] 01:25:57 tcp.go:489: sending password
[debug] 01:25:57 tcp.go:500: waiting for first ok
[debug] 01:25:57 tcp.go:518: sending room
[debug] 01:25:57 tcp.go:529: waiting for room confirmation
[debug] 01:25:57 tcp.go:545: all set
[debug] 01:25:57 croc.go:826: local connection established to 192.168.1.128:9009
[debug] 01:25:57 croc.go:827: banner: 9010,9011,9012,9013
[debug] 01:25:57 croc.go:848: exchanged header message
securing channel...[debug]      01:25:57 croc.go:866: ready
[debug] 01:25:57 message.go:61: writing pake message (unencrypted)
[debug] 01:25:57 message.go:80: read pake message (unencrypted)
[debug] 01:25:57 croc.go:1099: received pake payload
[debug] 01:25:57 croc.go:1146: generated key = 5882b9d19db5bdfeb6c69059aa1a85d8546f0142328e653bde9f1270ece01d53 with salt 2f5c5d0ea3892058
[debug] 01:25:57 croc.go:1152: port: [9010]
[debug] 01:25:57 croc.go:1152: port: [9011]
[debug] 01:25:57 croc.go:1152: port: [9012]
[debug] 01:25:57 croc.go:1152: port: [9013]
[debug] 01:25:57 croc.go:1166: connecting to 192.168.1.128:9010
[debug] 01:25:57 croc.go:1166: connecting to 192.168.1.128:9011
[debug] 01:25:57 croc.go:1166: connecting to 192.168.1.128:9013
[debug] 01:25:57 comm.go:55: dialing to 192.168.1.128:9011 with timelimit 30s
[debug] 01:25:57 croc.go:1166: connecting to 192.168.1.128:9012
[debug] 01:25:57 comm.go:55: dialing to 192.168.1.128:9013 with timelimit 30s
[debug] 01:25:57 comm.go:55: dialing to 192.168.1.128:9012 with timelimit 30s
[debug] 01:25:57 comm.go:55: dialing to 192.168.1.128:9010 with timelimit 30s
[debug] 01:25:57 comm.go:64: connected to '192.168.1.128:9010'
[debug] 01:25:57 comm.go:64: connected to '192.168.1.128:9013'
[debug] 01:25:57 comm.go:64: connected to '192.168.1.128:9012'
[debug] 01:25:57 comm.go:64: connected to '192.168.1.128:9011'
[debug] 01:25:57 tcp.go:475: strong key: cc9b173de52a9932140e4593f83ac047246eeccb9cfd129f180bbac123c169d5
[debug] 01:25:57 tcp.go:489: sending password
[debug] 01:25:57 tcp.go:500: waiting for first ok
[debug] 01:25:57 tcp.go:475: strong key: b2367f789656554c5f165219b0af63e03f10bac31444411643226419f3c7c96c
[debug] 01:25:57 tcp.go:489: sending password
[debug] 01:25:57 tcp.go:518: sending room
[debug] 01:25:57 tcp.go:475: strong key: aba5f7eaf4b6f3f411b5185ceb942672ca3960b10885cf9acb528c6d167ac740
[debug] 01:25:57 tcp.go:529: waiting for room confirmation
[debug] 01:25:57 tcp.go:475: strong key: bc8d1731c1a6d1e87b90212386e90517ff787f420429874ed987dd9486c0a06e
[debug] 01:25:57 tcp.go:500: waiting for first ok
[debug] 01:25:57 tcp.go:489: sending password
[debug] 01:25:57 tcp.go:489: sending password
[debug] 01:25:57 tcp.go:500: waiting for first ok
[debug] 01:25:57 tcp.go:500: waiting for first ok
[debug] 01:25:57 tcp.go:518: sending room
[debug] 01:25:57 tcp.go:545: all set
[debug] 01:25:57 croc.go:1175: connected to 192.168.1.128:9013
[debug] 01:25:57 tcp.go:529: waiting for room confirmation
[debug] 01:25:57 croc.go:1682: 3 receiving data
[debug] 01:25:57 croc.go:1689: got ping
[debug] 01:25:57 tcp.go:518: sending room
[debug] 01:25:57 tcp.go:529: waiting for room confirmation
[debug] 01:25:57 tcp.go:518: sending room
[debug] 01:25:57 tcp.go:529: waiting for room confirmation
[debug] 01:25:57 tcp.go:545: all set
[debug] 01:25:57 croc.go:1175: connected to 192.168.1.128:9011
[debug] 01:25:57 tcp.go:545: all set
[debug] 01:25:57 croc.go:1682: 1 receiving data
[debug] 01:25:57 croc.go:1175: connected to 192.168.1.128:9012
[debug] 01:25:57 croc.go:1689: got ping
[debug] 01:25:57 croc.go:1682: 2 receiving data
[debug] 01:25:57 tcp.go:545: all set
[debug] 01:25:57 croc.go:1175: connected to 192.168.1.128:9010
[debug] 01:25:57 croc.go:1689: got ping
[debug] 01:25:57 croc.go:1184: sending external IP
[debug] 01:25:57 croc.go:1682: 0 receiving data
[debug] 01:25:57 message.go:58: writing externalip message (encrypted)
[debug] 01:25:57 croc.go:1689: got ping
[debug] 01:25:58 croc.go:1689: got ping
[debug] 01:25:58 croc.go:1689: got ping
[debug] 01:25:58 croc.go:1689: got ping
[debug] 01:25:58 croc.go:1689: got ping
[debug] 01:25:59 croc.go:1689: got ping
[debug] 01:25:59 croc.go:1689: got ping
[debug] 01:25:59 croc.go:1689: got ping
[debug] 01:25:59 croc.go:1689: got ping
[debug] 01:26:00 croc.go:1689: got ping
[debug] 01:26:00 croc.go:1689: got ping
[debug] 01:26:00 croc.go:1689: got ping
[debug] 01:26:00 croc.go:1689: got ping
[debug] 01:26:01 croc.go:1689: got ping
[debug] 01:26:01 croc.go:1689: got ping
[debug] 01:26:01 croc.go:1689: got ping
[debug] 01:26:01 croc.go:1689: got ping
[debug] 01:26:02 croc.go:1689: got ping
[debug] 01:26:02 croc.go:1689: got ping
[debug] 01:26:02 croc.go:1689: got ping
[debug] 01:26:02 croc.go:1689: got ping
[debug] 01:26:02 comm.go:128: initial read error: read tcp 192.168.1.20:33504->192.168.1.128:9009: read: connection reset by peer
[debug] 01:26:02 croc.go:884: got error receiving: read tcp 192.168.1.20:33504->192.168.1.128:9009: read: connection reset by peer
2022/09/15 01:26:02 could not secure channel

With Workaround (Specifying --no-local)

Sender

> croc --debug send --text "hello" --no-multi --no-local --code "161519"
[debug] 01:31:00 cli.go:142: debug mode on
[debug] 01:31:00 croc.go:180: options: {IsSender:true SharedSecret:161519 Debug:true RelayAddress:5.161.69.143:9009 RelayAddress6: RelayPorts:[9009 9010 9011 9012 9013] RelayPassword:pass123 Stdout:false NoPrompt:false NoMultiplexing:true DisableLocal:true OnlyLocal:false IgnoreStdin:false Ask:false SendingText:true NoCompress:false IP: Overwrite:false Curve:p256 HashAlgorithm:xxhash ThrottleUpload: ZipFolder:false}
[debug] 01:31:00 croc.go:395: hashed C:\Users\chance.harrison\Downloads\croc-stdin-3182922109 to 26c7827d889f6da3 using xxhash
[debug] 01:31:00 croc.go:400: file 0 info: {Name:croc-stdin-3182922109 FolderRemote:./ FolderSource:C:\Users\chance.harrison\Downloads Hash:[38 199 130 125 136 159 109 163] Size:5 ModTime:2022-09-15 01:31:00.4095826 -0700 PDT IsCompressed:false IsEncrypted:false Symlink: Mode:-rw-rw-rw- TempFile:false}
Sending 0 files (5 B)[debug]    01:31:00 croc.go:404: longestFilename: 21
Sending 'text' (5 B)
Code is: 161519
On the other computer run

croc 161519
[debug] 01:31:00 croc.go:561: host: '5.161.69.143', port: '9009'
[debug] 01:31:00 croc.go:567: got host '5.161.69.143' and port '9009'
[debug] 01:31:00 croc.go:569: trying connection to 5.161.69.143:9009
[debug] 01:31:00 comm.go:55: dialing to 5.161.69.143:9009 with timelimit 5s
[debug] 01:31:00 comm.go:64: connected to '5.161.69.143:9009'
[debug] 01:31:00 tcp.go:475: strong key: 8c592cfb57d826fcf7ce78a99f72bfa61ae6e8d1a667ea1a11185830483df9dd
[debug] 01:31:00 tcp.go:489: sending password
[debug] 01:31:00 tcp.go:500: waiting for first ok
[debug] 01:31:00 tcp.go:518: sending room
[debug] 01:31:00 tcp.go:529: waiting for room confirmation
[debug] 01:31:00 tcp.go:545: all set
[debug] 01:31:00 croc.go:586: banner: 9010,9011,9012,9013
[debug] 01:31:00 croc.go:587: connection established: &{connection:0xc00021e130}
[debug] 01:31:00 croc.go:589: waiting for bytes
[debug] 01:31:00 croc.go:614: got ping
[debug] 01:31:00 croc.go:589: waiting for bytes
[debug] 01:31:01 croc.go:614: got ping
[debug] 01:31:01 croc.go:589: waiting for bytes
[debug] 01:31:02 croc.go:614: got ping
[debug] 01:31:02 croc.go:589: waiting for bytes
[debug] 01:31:03 croc.go:589: waiting for bytes
[debug] 01:31:03 croc.go:627: no multiplexing
[debug] 01:31:03 croc.go:631: exchanged header message
[debug] 01:31:03 croc.go:866: ready
[debug] 01:31:03 message.go:80: read pake message (unencrypted)
[debug] 01:31:03 croc.go:1099: received pake payload
[debug] 01:31:03 croc.go:1104: using curve p256
[debug] 01:31:03 croc.go:1118: generating salt
[debug] 01:31:03 croc.go:1124: sender sending pake+salt
[debug] 01:31:03 message.go:61: writing pake message (unencrypted)
[debug] 01:31:03 croc.go:1146: generated key = 2af462cbde585fcd4675fdf0060565c73194366b7f3a0a7013dab62af8bb0132 with salt dc7af10b85f3f5a2
[debug] 01:31:03 croc.go:1152: port: [9010]
[debug] 01:31:03 croc.go:1166: connecting to 5.161.69.143:9010
[debug] 01:31:03 comm.go:55: dialing to 5.161.69.143:9010 with timelimit 30s
[debug] 01:31:03 comm.go:64: connected to '5.161.69.143:9010'
[debug] 01:31:03 tcp.go:475: strong key: 8b3b5d64299cd8b02eb2cfe41d3150eaaf1fdf7870c7723e6e2753a8c89c615a
[debug] 01:31:03 tcp.go:489: sending password
[debug] 01:31:03 tcp.go:500: waiting for first ok
[debug] 01:31:03 tcp.go:518: sending room
[debug] 01:31:03 tcp.go:529: waiting for room confirmation
[debug] 01:31:03 tcp.go:545: all set
[debug] 01:31:03 croc.go:1175: connected to 5.161.69.143:9010
[debug] 01:31:04 message.go:78: read externalip message (encrypted)
[debug] 01:31:04 croc.go:1195: received external IP: {"t":"externalip","m":"[redacted]:41918","b":"eyJSb2xlIjoxLCJV4bWkIjo3OTMxMzYwODA0ODU0NjkyNDEyMDg2NTY2MTE1MTM2MDk4NjY0MDA0ODE2NzE4NTIsIlXhtaUiOjU5NzQ4NzU3OTI5MzUwMzY3MzY5MzE1ODExMTg0OTgwNjM1MjMwMTg1MjUwNDYwMTA4Mzk4OTYxNzEzMzk1MDMyNDg1MjI3MjA3MzA0LCJW4bWkIjoxMDg2Njg1MjY3ODU3MDg5NjM4MTY3Mzg2NzIyNTU1NDcyOTY3MDY4NDY4MDYxNDg5LCJW4bWlIjo5MTU3MzQwMjMwMjAyMjk2NTU0NDE3MzEyODE2MzA5NDUzODgzNzQyMzQ5ODc0MjA1Mzg2MjQ1NzMzMDYyOTI4ODg4MzQxNTg0MTIzLCJY4bWkIjoyNDI3Njg0ODg2Njk5MTE0OTMyMzI3Mjg3ODgyMTAxNzI0ODE1NDI5ODM4NDg2MTU0MjQ3NDM3MjQzMTUxNDczMjQzODUwODU4NzA4OSwiWOG1pSI6NDg4NTcwODM5ODY2MzQxMTQ1MjI5Njg1MjE3MjcxNzk2MjEyNDkxMzQzMzcyNzM3NjA3MDY4NjA1ODkzMTA3OTc1MDYwMzc3OTM3NTUsIlnhtaQiOjExMTA2MzU3MTcwMDYzNTUwMzUxOTIwMDAwMTg4MjAyNjU2NTM0MjUwMjg2ODkyMTAyOTUxMDA1NDc2NzYwNTk1NzE5NTc4Mzk4ODczLCJZ4bWlIjo1NzgyMjc5OTQ1NzIzMzY0NDgyOTg3OTcwMjYwMTAwNjQ2NDA2MjY0MjI5ODM1MTcwMTM5OTg2NzczOTU1MDY3OTQ5NjY2MjEyNjM2LCJQIjpudWxsLCJQdyI6bnVsbCwiVnB34bWkIjpudWxsLCJWcHfhtaUiOm51bGwsIlVwd+G1pCI6bnVsbCwiVXB34bWlIjpudWxsLCJBzrEiOm51bGwsIkHOseG1pCI6bnVsbCwiQc6x4bWlIjpudWxsLCJa4bWkIjpudWxsLCJa4bWlIjpudWxsLCJLIjpudWxsfQ=="}
[debug] 01:31:04 message.go:58: writing externalip message (encrypted)
[debug] 01:31:04 croc.go:1209: connected as [redacted]:64763 -> [redacted]:41918
[debug] 01:31:04 message.go:58: writing fileinfo message (encrypted)
[debug] 01:31:11 message.go:78: read recipientready message (encrypted)
[debug] 01:31:11 croc.go:1263: current file chunks: []
[debug] 01:31:11 croc.go:1594: start sending data!

Sending (->[redacted]:41918)
[debug] 01:31:11 croc.go:1629: beginning sending comms
[debug] 01:31:11 croc.go:1640: starting sending over comm 0
[debug] 01:31:11 croc.go:1750: finished with 0
[debug] 01:31:11 croc.go:1753: closing file
[debug] 01:31:11 message.go:78: read close-sender message (encrypted)
[debug] 01:31:11 croc.go:1286: close-sender received...
[debug] 01:31:11 croc.go:1289: sending close-recipient
[debug] 01:31:11 message.go:58: writing close-recipient message (encrypted)
[debug] 01:31:12 message.go:78: read finished message (encrypted)
[debug] 01:31:12 message.go:58: writing finished message (encrypted)

Receiver

# croc --debug 161519
[debug] 01:31:02 cli.go:142: debug mode on
[debug] 01:31:02 croc.go:180: options: {IsSender:false SharedSecret:161519 Debug:true RelayAddress:5.161.69.143:9009 RelayAddress6:[2a01:4ff:f0:23c2::14c:1]:9009 RelayPorts:[] RelayPassword:pass123 Stdout:false NoPrompt:false NoMultiplexing:false DisableLocal:false OnlyLocal:false IgnoreStdin:false Ask:false SendingText:false NoCompress:false IP: Overwrite:false Curve:p256 HashAlgorithm: ThrottleUpload: ZipFolder:false}
connecting...[debug]    01:31:02 croc.go:682: attempt to discover peers
[debug] 01:31:02 croc.go:747: discoveries: []
[debug] 01:31:02 croc.go:748: establishing connection
[debug] 01:31:02 croc.go:764: got host '2a01:4ff:f0:23c2::14c:1' and port '9009'
[debug] 01:31:02 croc.go:766: trying connection to [2a01:4ff:f0:23c2::14c:1]:9009
[debug] 01:31:02 comm.go:55: dialing to [2a01:4ff:f0:23c2::14c:1]:9009 with timelimit 200ms
[debug] 01:31:02 comm.go:60: comm.NewConnection failed: dial tcp [2a01:4ff:f0:23c2::14c:1]:9009: connect: network is unreachable
[debug] 01:31:02 tcp.go:445: comm.NewConnection failed: dial tcp [2a01:4ff:f0:23c2::14c:1]:9009: connect: network is unreachable
[debug] 01:31:02 croc.go:772: could not establish '[2a01:4ff:f0:23c2::14c:1]:9009'
[debug] 01:31:02 croc.go:764: got host '5.161.69.143' and port '9009'
[debug] 01:31:02 croc.go:766: trying connection to 5.161.69.143:9009
[debug] 01:31:02 comm.go:55: dialing to 5.161.69.143:9009 with timelimit 5s
[debug] 01:31:02 comm.go:64: connected to '5.161.69.143:9009'
[debug] 01:31:02 tcp.go:475: strong key: 0ebc25a174adb55f6190f858f956ecc5601ea1c9094d7978ebe8f680eaf85f6b
[debug] 01:31:02 tcp.go:489: sending password
[debug] 01:31:02 tcp.go:500: waiting for first ok
[debug] 01:31:02 tcp.go:518: sending room
[debug] 01:31:02 tcp.go:529: waiting for room confirmation
[debug] 01:31:02 tcp.go:545: all set
[debug] 01:31:02 croc.go:779: receiver connection established: &{connection:0xc0000101b8}
[debug] 01:31:02 croc.go:780: banner: 9010,9011,9012,9013
[debug] 01:31:02 croc.go:785: sending ips?
[debug] 01:31:02 croc.go:794: ips data: null
[debug] 01:31:02 croc.go:848: exchanged header message
securing channel...[debug]      01:31:02 croc.go:866: ready
[debug] 01:31:02 message.go:61: writing pake message (unencrypted)
[debug] 01:31:03 message.go:80: read pake message (unencrypted)
[debug] 01:31:03 croc.go:1099: received pake payload
[debug] 01:31:03 croc.go:1146: generated key = 2af462cbde585fcd4675fdf0060565c73194366b7f3a0a7013dab62af8bb0132 with salt dc7af10b85f3f5a2
[debug] 01:31:03 croc.go:1152: port: [9010]
[debug] 01:31:03 croc.go:1152: port: [9011]
[debug] 01:31:03 croc.go:1152: port: [9012]
[debug] 01:31:03 croc.go:1152: port: [9013]
[debug] 01:31:03 croc.go:1166: connecting to 5.161.69.143:9010
[debug] 01:31:03 comm.go:55: dialing to 5.161.69.143:9010 with timelimit 30s
[debug] 01:31:03 croc.go:1166: connecting to 5.161.69.143:9011
[debug] 01:31:03 croc.go:1166: connecting to 5.161.69.143:9013
[debug] 01:31:03 comm.go:55: dialing to 5.161.69.143:9011 with timelimit 30s
[debug] 01:31:03 comm.go:55: dialing to 5.161.69.143:9013 with timelimit 30s
[debug] 01:31:03 croc.go:1166: connecting to 5.161.69.143:9012
[debug] 01:31:03 comm.go:55: dialing to 5.161.69.143:9012 with timelimit 30s
[debug] 01:31:03 comm.go:64: connected to '5.161.69.143:9011'
[debug] 01:31:03 comm.go:64: connected to '5.161.69.143:9010'
[debug] 01:31:03 comm.go:64: connected to '5.161.69.143:9013'
[debug] 01:31:03 comm.go:64: connected to '5.161.69.143:9012'
[debug] 01:31:03 tcp.go:475: strong key: 851d4ca8cb333a3c6de478e9ed44b8e5d30e06a629b1c8b15114e456e5caefe6
[debug] 01:31:03 tcp.go:489: sending password
[debug] 01:31:03 tcp.go:500: waiting for first ok
[debug] 01:31:03 tcp.go:475: strong key: 6a5f6bade5d14a336ff46b3a6b11e16f346874f2f385b414757e22e54439ebf2
[debug] 01:31:03 tcp.go:475: strong key: 090c6e5b30fd53075dd923021748e7d3eb11859219a2a8c1c20ef03478d84028
[debug] 01:31:03 tcp.go:489: sending password
[debug] 01:31:03 tcp.go:500: waiting for first ok
[debug] 01:31:03 tcp.go:489: sending password
[debug] 01:31:03 tcp.go:500: waiting for first ok
[debug] 01:31:03 tcp.go:475: strong key: 11a45627db3f338ebc0c47b12f525aaea5f88895bb51016f440476d00f0c6ef1
[debug] 01:31:03 tcp.go:489: sending password
[debug] 01:31:03 tcp.go:500: waiting for first ok
[debug] 01:31:03 tcp.go:518: sending room
[debug] 01:31:03 tcp.go:518: sending room
[debug] 01:31:03 tcp.go:518: sending room
[debug] 01:31:03 tcp.go:529: waiting for room confirmation
[debug] 01:31:03 tcp.go:529: waiting for room confirmation
[debug] 01:31:03 tcp.go:529: waiting for room confirmation
[debug] 01:31:03 tcp.go:518: sending room
[debug] 01:31:03 tcp.go:529: waiting for room confirmation
[debug] 01:31:03 tcp.go:545: all set
[debug] 01:31:03 croc.go:1175: connected to 5.161.69.143:9011
[debug] 01:31:03 croc.go:1682: 1 receiving data
[debug] 01:31:03 croc.go:1689: got ping
[debug] 01:31:03 tcp.go:545: all set
[debug] 01:31:03 tcp.go:545: all set
[debug] 01:31:03 croc.go:1175: connected to 5.161.69.143:9010
[debug] 01:31:03 croc.go:1175: connected to 5.161.69.143:9013
[debug] 01:31:03 croc.go:1682: 0 receiving data
[debug] 01:31:03 croc.go:1682: 3 receiving data
[debug] 01:31:03 croc.go:1689: got ping
[debug] 01:31:03 tcp.go:545: all set
[debug] 01:31:03 croc.go:1175: connected to 5.161.69.143:9012
[debug] 01:31:03 croc.go:1184: sending external IP
[debug] 01:31:03 croc.go:1682: 2 receiving data
[debug] 01:31:03 croc.go:1689: got ping
[debug] 01:31:03 message.go:58: writing externalip message (encrypted)
[debug] 01:31:03 message.go:78: read externalip message (encrypted)
[debug] 01:31:03 croc.go:1195: received external IP: {"t":"externalip","m":"[redacted]:64763"}
[debug] 01:31:03 croc.go:1209: connected as [redacted]:41918 -> [redacted]:64763
[debug] 01:31:03 message.go:78: read fileinfo message (encrypted)
[debug] 01:31:03 croc.go:998: using hash algorithm: xxhash
Display text message (5 B)? (Y/n) [debug]       01:31:04 croc.go:1689: got ping
[debug] 01:31:04 croc.go:1689: got ping
[debug] 01:31:04 croc.go:1689: got ping
[debug] 01:31:05 croc.go:1689: got ping
[debug] 01:31:05 croc.go:1689: got ping
[debug] 01:31:05 croc.go:1689: got ping
[debug] 01:31:06 croc.go:1689: got ping
[debug] 01:31:06 croc.go:1689: got ping
[debug] 01:31:06 croc.go:1689: got ping
[debug] 01:31:07 croc.go:1689: got ping
[debug] 01:31:07 croc.go:1689: got ping
[debug] 01:31:07 croc.go:1689: got ping
[debug] 01:31:08 croc.go:1689: got ping
[debug] 01:31:08 croc.go:1689: got ping
[debug] 01:31:08 croc.go:1689: got ping
[debug] 01:31:09 croc.go:1689: got ping
[debug] 01:31:09 croc.go:1689: got ping
[debug] 01:31:09 croc.go:1689: got ping
[debug] 01:31:10 croc.go:1689: got ping
[debug] 01:31:10 croc.go:1689: got ping
[debug] 01:31:10 croc.go:1689: got ping
y

Receiving (<-[redacted]:64763)
[debug] 01:31:11 croc.go:1093: [{./croc-stdin-3781370613 ./ C:\Users\chance.harrison\Downloads [38 199 130 125 136 159 109 163] 5 2022-09-15 01:31:00.4095826 -0700 PDT false false  -rw-rw-rw- false}]
[debug] 01:31:11 croc.go:1509: checking {Name:./croc-stdin-3781370613 FolderRemote:./ FolderSource:C:\Users\chance.harrison\Downloads Hash:[38 199 130 125 136 159 109 163] Size:5 ModTime:2022-09-15 01:31:00.4095826 -0700 PDT IsCompressed:false IsEncrypted:false Symlink: Mode:-rw-rw-rw- TempFile:false}
[debug] 01:31:11 croc.go:1526: ./croc-stdin-3781370613  26c7827d889f6da3 <nil>
[debug] 01:31:11 croc.go:1528: hashed ./croc-stdin-3781370613 to  using xxhash
[debug] 01:31:11 croc.go:1529: hashes are not equal  != 26c7827d889f6da3
[debug] 01:31:11 croc.go:1342: working on file 0
[debug] 01:31:11 croc.go:1422: converting to chunk range
[debug] 01:31:11 croc.go:1430: sending recipient ready with 0 chunks
[debug] 01:31:11 message.go:58: writing recipientready message (encrypted)
[debug] 01:31:11 croc.go:1722: finished receiving!
[debug] 01:31:11 croc.go:1726: Successful closing croc-stdin-3781370613
hello[debug]    01:31:11 croc.go:1736: sending close-sender
[debug] 01:31:11 message.go:58: writing close-sender message (encrypted)
[debug] 01:31:11 croc.go:1689: got ping
[debug] 01:31:11 croc.go:1689: got ping
[debug] 01:31:11 croc.go:1689: got ping
[debug] 01:31:11 message.go:78: read close-recipient message (encrypted)
[debug] 01:31:11 croc.go:1509: checking {Name:./croc-stdin-3781370613 FolderRemote:./ FolderSource:C:\Users\chance.harrison\Downloads Hash:[38 199 130 125 136 159 109 163] Size:5 ModTime:2022-09-15 01:31:00.4095826 -0700 PDT IsCompressed:false IsEncrypted:false Symlink: Mode:-rw-rw-rw- TempFile:false}
[debug] 01:31:11 croc.go:1526: ./croc-stdin-3781370613 26c7827d889f6da3 26c7827d889f6da3 <nil>
[debug] 01:31:11 croc.go:1551: hashes are equal 26c7827d889f6da3 == 26c7827d889f6da3
[debug] 01:31:11 croc.go:1398: finished
[debug] 01:31:11 message.go:58: writing finished message (encrypted)
[debug] 01:31:11 croc.go:1342: working on file 0
[debug] 01:31:11 croc.go:1422: converting to chunk range
[debug] 01:31:11 croc.go:1430: sending recipient ready with 0 chunks
[debug] 01:31:11 message.go:58: writing recipientready message (encrypted)
[debug] 01:31:11 comm.go:128: initial read error: EOF
[debug] 01:31:11 message.go:78: read finished message (encrypted)
[debug] 01:31:11 message.go:58: writing finished message (encrypted)
[debug] 01:31:11 croc.go:930: pathToFile: croc-stdin-3781370613

ChanceHarrison avatar Sep 15 '22 08:09 ChanceHarrison

I have a similar issue sending windows to mac-linux. it also works using --no-local. Also, coming from a non-coder, what does the local relay exactly do and why does avoiding it fix the issue??

SolarpandaS avatar Dec 09 '22 11:12 SolarpandaS

Local relay uses your LAN network to communicate. I think in some cases Windows blocks the ports needed to communicate, but I can't replicate this error (with windows -> windows or windows -> mac or mac -> linux)

schollz avatar Dec 13 '22 22:12 schollz

Are there specific ports I should open or firewall allowances I should set on either side? I can send files from Mac to PC just fine without the no-local modifier over my network.

SolarpandaS avatar Dec 14 '22 07:12 SolarpandaS

Hi!

Same error here. Even if I switched to magic wormhole and it works from Windows to Linux without any problem on LAN, I really like croc and would want to solve this issue. @schollz, how could we help you debug this issue and provide useful information?

neurolit avatar May 03 '23 21:05 neurolit

Hi @neurolit can you make a new Issue and post your output? This issue is a conflation of several issues which have not been reproducible for me. I'm going to close this.

schollz avatar May 04 '23 12:05 schollz