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

Cannot connect to Dat network #1197

Open
gergelypolonkai opened this issue Feb 16, 2021 · 3 comments
Open

Cannot connect to Dat network #1197

gergelypolonkai opened this issue Feb 16, 2021 · 3 comments

Comments

@gergelypolonkai
Copy link

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.

@snxraven
Copy link

snxraven commented Jun 9, 2021

`$ 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
`

@jeffro256
Copy link

jeffro256 commented Aug 3, 2021

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.

@WinsDominoes
Copy link

WinsDominoes commented Aug 12, 2021

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?

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

4 participants