dat icon indicating copy to clipboard operation
dat copied to clipboard

Cannot connect to Dat network

Open gergelypolonkai opened this issue 4 years ago • 3 comments

I am reporting:

  • a bug or unexpected behavior

Bug Report

Please give us details about your installation to assist you. Run dat -v to see the version of Dat you are using.

  • Operating system: Fedora 33
  • Node Version: 14.15.4
  • Dat Version: dat@next (but the same happens with plain dat; both installed via npm install -g)

Expected behavior

Get to the next step and wait for incoming connections.

Actual behavior

When i start cloning a Dat i created earlier (and which is available, e.g. on hashbase.io), Dat tells me that it’s “Connecting to dat network...”, and nothing else happens.

Debug Logs

  dat Dat DEBUG mode engaged, enabling quiet mode +0ms
  dat dat 14.0.2 +6ms
  dat node v14.15.4 +0ms
  dat clone() +0ms
  dat {
  dat   _: null,
  dat   utp: true,
  dat   debug: false,
  dat   quiet: true,
  dat   sparse: false,
  dat   upload: true,
  dat   'show-key': false,
  dat   k: false,
  dat   logspeed: 400,
  dat   empty: false,
  dat   key: '<private>',
  dat   dir: 'dat-version',
  dat   showKey: false
  dat } +0ms
  dat-link-resolve resolveKey dat://gergely.polonkai.eu dat://gergely.polonkai.eu +0ms
  dat dns-over-https lookup for name: gergely.polonkai.eu. +0ms
  dat dns-over-https failed gergely.polonkai.eu did not give any TXT datkey answers +197ms
  dat .well-known/dat lookup for name: gergely.polonkai.eu +0ms
  dat .well-known/dat resolved gergely.polonkai.eu to f2f8fde752df4c5c69506b22fbcc62fd572829c9a72e5053c15d13170b731461 +98ms
  dat-link-resolve resolveName dat://gergely.polonkai.eu null f2f8fde752df4c5c69506b22fbcc62fd572829c9a72e5053c15d13170b731461 +508ms
  dat Checking directory for clone +519ms
  dat-node archive ready. version: 0 +0ms

Additional information

I’m behind a NAT. My home router forwards port 3282 to the machine on which i run dat clone and i tested it is accessible from the outside world.

dat doctor said (until i installed dat@next, which doesn’t have this functionality; however, i installed dat-doctor which says exactly the same)

Welcome to Dat Doctor!

Software Info:
  linux x64
  Node v14.15.4
  Dat Doctor v2.1.2

Running Basic Tests (Checks your Dat installation and network setup)

✖ Who am I?
    ERROR: Could not detect public ip / port
✔ Loaded native modules
✔ Resolved Dat Doctor Server
✖ Public Peer Test via TCP Failed
  Unable to connect to Dat public server
✖ Public Peer Test via UDP Failed
  Unable to connect to Dat public server

FAIL
2 of 5 tests passed

Your network may be preventing you from using Dat.
For further troubleshooting, visit https://docs.datproject.org/troubleshooting

Checking manually, the hosts dat-doctor tries to reach (bootstrap[1..4].datprotocol.com) are unreachable to me.

The same thing happens on a machine with a public IP address.

gergelypolonkai avatar Feb 16 '21 09:02 gergelypolonkai

`$ dat-doctor Welcome to Dat Doctor!

Software Info: linux x64 Node v10.19.0 Dat Doctor v2.1.2

Running Basic Tests (Checks your Dat installation and network setup)

✖ Who am I? ERROR: Could not detect public ip / port ✔ Loaded native modules ✔ Resolved Dat Doctor Server ✖ Public Peer Test via TCP Failed Unable to connect to Dat public server ✖ Public Peer Test via UDP Failed Unable to connect to Dat public server

FAIL 2 of 5 tests passed

Your network may be preventing you from using Dat. For further troubleshooting, visit https://docs.datproject.org/troubleshooting `

snxraven avatar Jun 09 '21 18:06 snxraven

I have exactly the same problem as above, with the same software info as @snxraven. I can't connect to the dat network and clone anything outside of localhost. I am running Ubuntu 20.04.2. I have tried installing dat through the bash file and npm using both sudo npm install -g dat and sudo npm install -g dat@next.

jeffro256 avatar Aug 03 '21 18:08 jeffro256

I have this issue too! It seems like I can only access the dat network inside localhost. I am running Debian 10.10. I installed dat via the bash script, any solutions to this problem?

WinsDominoes avatar Aug 12 '21 14:08 WinsDominoes