Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get this to work #7

Open
fleetingbytes opened this issue Mar 26, 2021 · 0 comments
Open

Can't get this to work #7

fleetingbytes opened this issue Mar 26, 2021 · 0 comments

Comments

@fleetingbytes
Copy link

I am trying to use this between my windows PC and my android phone. For Windows I downloaded the zipped croc binary v8.6.11-757ed18, on Android I use croc GUI v1.4.1 and croc v8.6.7. The windows PC is connected to the internet through USB tethering of the android phone.

on the PC I run croc send "g:\some file.txt"
that gives me a receive code

on the android phone I start croc (I leave all the fields in the settings in their default state), enter the receive code and get this error:
Receive failed: could not connect to : found no addresses to connect

Then I ran this with --debug a couple of times. I Realized that I must start the croc app on my Android phone after I execute the croc command on the PC and enter the receive code within 30 seconds, otherwise the croc session on the PC will time out and report the room empty (that's quite a tight time schedule, especially if you have to switch keyboard layouts on the android to type the hyphens). But even if all these preconditions are met, it still fails:

[debug] 08:22:36 tcp.go:56: starting with password 'pass123'
[info]  2021/03/26 08:22:36 starting TCP server on 9010
[debug] 08:22:36 tcp.go:56: starting with password 'pass123'
[info]  2021/03/26 08:22:36 starting TCP server on 9009
[debug] 08:22:36 croc.go:392: host: '', port: '9009'
[debug] 08:22:36 tcp.go:56: starting with password 'pass123'
[info]  2021/03/26 08:22:36 starting TCP server on 9012
[debug] 08:22:36 tcp.go:56: starting with password 'pass123'
[info]  2021/03/26 08:22:36 starting TCP server on 9013
[debug] 08:22:36 croc.go:398: got host '' and port '9009'
[debug] 08:22:36 tcp.go:56: starting with password 'pass123'
[info]  2021/03/26 08:22:36 starting TCP server on 9011
[debug] 08:22:36 croc.go:400: trying connection to :9009
[debug] 08:22:36 tcp.go:100: client 127.0.0.1:64851 connected
[debug] 08:22:36 comm.go:59: connected to ':9009'
[debug] 08:22:36 tcp.go:452: strong key: 3174eb9a61fd73c8da372e636cd3c07dd68b444d5b10d2122d96a28bb10f1fc0
[debug] 08:22:36 tcp.go:464: sending password
[debug] 08:22:36 tcp.go:473: waiting for first ok
[debug] 08:22:36 tcp.go:188: strongkey: 3174eb9a61fd73c8da372e636cd3c07dd68b444d5b10d2122d96a28bb10f1fc0
[debug] 08:22:36 tcp.go:200: waiting for password
[debug] 08:22:36 tcp.go:223: sending '9010,9011,9012,9013'
[debug] 08:22:36 tcp.go:234: waiting for answer
[debug] 08:22:36 tcp.go:488: sending room
[debug] 08:22:36 tcp.go:497: waiting for room confirmation
[debug] 08:22:36 tcp.go:510: all set
[debug] 08:22:36 croc.go:417: banner: 9010,9011,9012,9013
[debug] 08:22:36 tcp.go:265: room sto has 1
[debug] 08:22:36 croc.go:418: connection established: &{connection:0xc000224000}
[debug] 08:22:36 croc.go:420: waiting for bytes
[debug] 08:22:36 tcp.go:104: room: sto
[debug] 08:22:36 tcp.go:105: err: <nil>
[debug] 08:22:36 tcp.go:118: checking connection of room sto for &{connection:0xc000098038}
[debug] 08:22:36 tcp.go:126: room: {first:0xc000094240 second:<nil> opened:{wall:13839421806842422952 ext:578294501 loc:0x12dec20} full:false}
[debug] 08:22:36 croc.go:445: got ping
[debug] 08:22:36 croc.go:420: waiting for bytes
[debug] 08:22:36 croc.go:314: establishing connection
[debug] 08:22:36 comm.go:59: connected to 'localhost:9009'
[debug] 08:22:36 tcp.go:100: client [::1]:64852 connected
[debug] 08:22:36 tcp.go:452: strong key: d01a5de54c00818156d7c1762d5a0f75f0f16b17774a18e40fdbd651d7dda178
[debug] 08:22:36 tcp.go:464: sending password
[debug] 08:22:36 tcp.go:473: waiting for first ok
[debug] 08:22:36 tcp.go:188: strongkey: d01a5de54c00818156d7c1762d5a0f75f0f16b17774a18e40fdbd651d7dda178
[debug] 08:22:36 tcp.go:200: waiting for password
[debug] 08:22:36 tcp.go:223: sending '9010,9011,9012,9013'
[debug] 08:22:36 tcp.go:234: waiting for answer
[debug] 08:22:36 tcp.go:488: sending room
[debug] 08:22:36 tcp.go:497: waiting for room confirmation
[debug] 08:22:36 tcp.go:282: room sto has 2
[debug] 08:22:36 tcp.go:298: starting pipes
[debug] 08:22:36 tcp.go:510: all set
[debug] 08:22:36 croc.go:317: banner: 9010,9011,9012,9013
[debug] 08:22:36 croc.go:324: local connection established: &{connection:0xc000098058}
[debug] 08:22:37 tcp.go:118: checking connection of room sto for &{connection:0xc000098038}
[debug] 08:22:37 tcp.go:126: room: {first:0xc000094240 second:0xc000212000 opened:{wall:13839421806842422952 ext:578294501 loc:0x12dec20} full:true}
[debug] 08:22:37 tcp.go:128: rooms ready
[debug] 08:23:02 tcp.go:100: client [fe80::b08d:2bff:fe41:abde%Ethernet 5]:48426 connected
[debug] 08:23:02 tcp.go:104: room: pinglkasjdlfjsaldjf
[debug] 08:23:02 tcp.go:105: err: <nil>
[debug] 08:23:02 tcp.go:112: got ping
[debug] 08:23:02 tcp.go:100: client [fe80::b08d:2bff:fe41:abde%Ethernet 5]:48428 connected
[debug] 08:23:02 tcp.go:188: strongkey: 9d05debb6b8891b9a69c1b179f0a9da384026f5aa186ecbded2685444465dd78
[debug] 08:23:02 tcp.go:200: waiting for password
[debug] 08:23:02 tcp.go:104: room:
[debug] 08:23:02 tcp.go:105: err: bad password
[debug] 08:23:02 tcp.go:107: relay-[fe80::b08d:2bff:fe41:abde%Ethernet 5]:48428: bad password
[debug] 08:23:06 croc.go:305: discoveries: [address: fe80::b08d:2bff:fe41:abde%Ethernet 5, payload: ok]
[debug] 08:23:06 croc.go:305: discoveries: [address: 192.168.230.205, payload: ok]

The android phone reports in the same sense:
Receive failed: could not connect to: [fe80:8597:f74c:28d5:778c%rndis0]:9009: incorrect passphrase

I assure you that I entered the correct password, including the hyphens between the words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant