Coder Social home page Coder Social logo

Croc won't send files about croc HOT 2 CLOSED

claytankozmo avatar claytankozmo commented on August 29, 2024 1
Croc won't send files

from croc.

Comments (2)

nabadvin avatar nabadvin commented on August 29, 2024

Same issue here! Using croc version v10.0.11 on Ubuntu 20.04.6 LTS:

$ croc --debug send xxx.pdf 
[debug]	10:55:27 cli.go:212: debug mode on
[debug]	10:55:27 cli.go:216: public IP address: 213.195.117.152
[debug]	10:55:27 croc.go:516: hashed /home/arakelov/xxx.pdf to 305facd19bc57c18 using xxhash
[debug]	10:55:27 croc.go:521: file 0 info: {Name:xxx.pdf FolderRemote:./ FolderSource:/home/arakelov Hash:[48 95 172 209 155 197 124 24] Size:26327 ModTime:2023-10-12 20:43:25.044536244 +0200 CEST IsCompressed:false IsEncrypted:false Symlink: Mode:-rw-rw-r-- TempFile:false IsIgnored:false}
Sending 0 files (25.7 kB)[debug]        10:55:27 croc.go:525: longestFilename: 7
Sending 'xxx.pdf' (25.7 kB)      
Code is: 3035-average-neon-message
On the other computer run

croc 3035-average-neon-message
[debug]	10:55:27 croc.go:683: host: '2a01:4ff:1f0:c10b::1', port: '9009'
[debug]	10:55:27 croc.go:689: got host '2a01:4ff:1f0:c10b::1' and port '9009'
[debug]	10:55:27 croc.go:691: trying connection to [2a01:4ff:1f0:c10b::1]:9009
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9009
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9013
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9010
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9011
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9012
[debug]	10:55:27 comm.go:78: dialing to [2a01:4ff:1f0:c10b::1]:9009 with timelimit 100ms
[debug]	10:55:27 comm.go:83: comm.NewConnection failed: dial tcp [2a01:4ff:1f0:c10b::1]:9009: connect: network is unreachable
[debug]	10:55:27 tcp.go:483: comm.NewConnection failed: dial tcp [2a01:4ff:1f0:c10b::1]:9009: connect: network is unreachable
[debug]	10:55:27 croc.go:697: could not establish '[2a01:4ff:1f0:c10b::1]:9009'
[debug]	10:55:27 croc.go:683: host: '5.78.91.237', port: '9009'
[debug]	10:55:27 croc.go:689: got host '5.78.91.237' and port '9009'
[debug]	10:55:27 croc.go:691: trying connection to 5.78.91.237:9009
[debug]	10:55:27 comm.go:78: dialing to 5.78.91.237:9009 with timelimit 5s
[debug]	10:55:27 comm.go:87: connected to '5.78.91.237:9009'
[debug]	10:55:27 comm.go:151: initial read error: EOF
[debug]	10:55:27 tcp.go:500: EOF
[debug]	10:55:27 croc.go:697: could not establish '5.78.91.237:9009'
[debug]	10:55:27 croc.go:704: could not connect to 5.78.91.237:9009: EOF
[debug]	10:55:27 croc.go:810: error from errchan: could not connect to 5.78.91.237:9009: EOF
2024/08/07 10:55:27 could not connect to 5.78.91.237:9009: EOF

It works, though, on a mobile network, using my mobile phone as an access point. So it seems that the error is network dependant.

UPDATE: I found the problem while reading https://github.com/schollz/croc/issues/773
So, I used my own relay and the problem was gone!

from croc.

schollz avatar schollz commented on August 29, 2024

Hi @nabadvin + @claytankozmo

It appears that the public server is currently at capacity from the sender IP address. When LAN connections aren't established and users aren't utilizing their private relay, the system defaults to the public server. The bandwidth usage of the public server incurs monthly costs for me, leading to a limit on the data that can be sent.

If you could sponsor me on GitHub, I'd be happy to remove this limit for you: GitHub Sponsor.

from croc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.