dat-ecosystem / dat

:floppy_disk: peer-to-peer sharing & live syncronization of files via command line
https://dat.foundation
BSD 3-Clause "New" or "Revised" License
8.24k stars 449 forks source link

can not clone file from linux to window7 #888

Open aximo opened 7 years ago

aximo commented 7 years ago

first ,great job and amazing software

I use the latest version v13.9.2 but i meet a question in this case:

I use [dat share] to share a folder in ubutun, and use [dat dat://xxx] in another folder of this vm , it ok.

but i use [dat dat://xxx] in local vm(win7), it stop at

Connecting to dat network...

i use dat doctor dat://xxx, and get some output

[info] Testing connection to public peer
[error] FAIL - Connection timeout, fail.
[error] FAIL - Connection timeout, fail.
[error] FAIL - Unable to connect to public server.
[error] FAIL - Data was not echoed back from public server.
[error] FAIL - Unable to connect to public server.
[error] FAIL - Data was not echoed back from public server.

[info] End of phase one (Public Server), moving on to phase two (Peer to Peer via DNS)

[error] Could not detect public ip / port

I check that somebody see utp is not supported in windows, i use [dat share --utp=false], but the issue is still exist.

so what is the root cause, any help?

pfrazee commented 7 years ago

UTP support was recently added for windows. Make sure you have the latest version of dat.

It looks like your windows 7 VM is failing to connect to anything, including some public trackers. Can you ping discovery1.publicbits.org from within your win7 vm?

aximo commented 7 years ago

we can not ping discovery1.publicbits.org

Pinging discovery1.publicbits.org [45.55.78.106] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 45.55.78.106:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

so can i use dat in a private network?

joehand commented 6 years ago

You should be able to connect locally via MulticastDNS. But not sure about the support in Windows or across platforms.

When you run dat doctor, it'll print out a key to use on the other computer (instead of using the dat key). But we should also add a local option in the doctor.