Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Could not connect to server (Name resolution failure) #261

Open
rex4539 opened this issue Sep 23, 2019 · 9 comments
Open

Could not connect to server (Name resolution failure) #261

rex4539 opened this issue Sep 23, 2019 · 9 comments

Comments

@rex4539
Copy link

rex4539 commented Sep 23, 2019

Describe the bug
Zap Mobile cannot connect to server.

To Reproduce
Steps to reproduce the behavior:

  1. Start Node Launcher.
  2. Start Zap Mobile on iPhone.
  3. On Terminal: lndconnect -j
  4. Paste output on iPhone.

Expected behavior
Zap mobile connects to server.

What happened
Error message "Could not connect to server (Name resolution failure)"

Your environment

  • Device: iPhone7
  • OS: iOS 13.1

Additional context
Zap Desktop connects to server perfectly.

@rex4539
Copy link
Author

rex4539 commented Sep 23, 2019

@JimmyMow

@JimmyMow
Copy link
Member

Hey @rex4539

Are you on the same local network? Are you port forwarding and sure your node is accessible?

Also, if I recall correctly, the Node Launcher has a Open Zap button or something of the like?

@rex4539
Copy link
Author

rex4539 commented Sep 23, 2019

If it wasn't clear from the bug report, my Zap Desktop connects fine. The mobile one on iOS is failing.

@JimmyMow
Copy link
Member

Hmmm, interesting. What Zap iOS release/version are you using @rex4539?

@rex4539
Copy link
Author

rex4539 commented Sep 26, 2019

Hm, after reading the docs, perhaps I'm having wrong expectations.

My expectation was to connect to my local lnd node on my Mac. I do not run a docker or other kind of remote node.

Is there a way to connect to my local node running on my Mac?

@JimmyMow
Copy link
Member

Ahhhh, this explains a lot.

It is possible, but not trivial. If you created a wallet within Zap Desktop, then by default you won't be able to. We don't set up the local LND to accept any inbound connections and don't allow outside apps to connect to it for various reasons. However, if you want to, or if you set up LND on your own, you can connect to it given the correct setup.

How did you setup LND locally?

@rex4539
Copy link
Author

rex4539 commented Sep 26, 2019

lnd was automatically set up by Node Launcher and Zap Desktop automatically connected to my lnd node. I did not have to configure anything.

@rex4539
Copy link
Author

rex4539 commented Sep 26, 2019

My lnd.conf

# Auto-Generated Configuration File
# Node Launcher version 6.0.6
debuglevel=info
restlisten=127.0.0.1:8081
rpclisten=127.0.0.1:10009
tlsextraip=127.0.0.1
color=#000000
listen=127.0.0.1:9735
bitcoin.active=1
bitcoin.node=bitcoind
bitcoind.rpchost=127.0.0.1:8332
bitcoind.rpcuser=default_user
bitcoind.rpcpass=mysupersecretpassword
bitcoind.zmqpubrawblock=tcp://127.0.0.1:18500
bitcoind.zmqpubrawtx=tcp://127.0.0.1:18501

@JimmyMow
Copy link
Member

JimmyMow commented Oct 3, 2019

Ok, so this configuration makes the node accessible on your local network. Is your phone on the same network?

If you'd like to join our slack, it might be easier to debug this there

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants