Skip to content

Cannot connect to Dat network #1197

@gergelypolonkai

Description

@gergelypolonkai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions