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 get remote access going #24

Closed
d4amenace opened this issue Sep 16, 2018 · 3 comments
Closed

Cannot get remote access going #24

d4amenace opened this issue Sep 16, 2018 · 3 comments

Comments

@d4amenace
Copy link

d4amenace commented Sep 16, 2018

I installed spark and use this startup command:

npx spark-wallet --login user:pass --host ddns.noip.com –onion true -Q

The first time I did this I saw a QR code and the tls and tor folders where created. That's when I found out I needed to get a different modem so I could get a ddns from noip.com and use my local pc as a server. Unfortunately the first time I ran spark it was on the old modem and still had it's old tls keys and tor keys. Now with the new modem (and ip) spark will not create a new tls or tor folder even when commanded...

When I start spark this is all I see....

7 1

My spark wallet conf file:

login=user:pass
port=9738
host=ddns.noip.com
onion=true
pairing-qr=true
no-tls=true

What am I missing? I have opened port 9738 (spark) and 9737 (lightning)....... set up ddns on router ....did not setup dhcp as it was not optional on TP-Link TC-W7960.

@shesek
Copy link
Owner

shesek commented Sep 16, 2018

It seems like you're running the Spark server that's bundled as part of the Electron desktop app, rather than the full standalone server (from the NPM package). The server bundled with Electron has some features turned off, including TLS and Onion support, because it should only ever be used for local connections. It also doesn't parse CLI args or use the config file. You really shouldn't be using this directly.

Can you try running spark-wallet from the NPM package instead of from the Electron build? Installing with npm install -g spark-wallet first should do the trick. If you do that successfully, Spark should not print Starting embedded Spark server ... when starting up.

I'll look into making this more intuitive -- the Electron build also providing the spark-wallet executable, even though its not the same as the full one you would get from npm, is quite confusing.

Also, a couple of notes regarding your CLI usage:

-onion

This should be --onion (with two -- and not one), or -o for short.

--pairing-qr/-Q

-Q is a shortcut for --pairing-qr, you should use one of these and not both.

shesek added a commit that referenced this issue Sep 21, 2018
To prevent confusion with the `spark-wallet` executable that gets installed via npm.

See #24 (comment)
@shesek
Copy link
Owner

shesek commented Sep 22, 2018

@d4amenace I'm closing this, please report back if you're still having issues.

@shesek shesek closed this as completed Sep 22, 2018
@d4amenace
Copy link
Author

Thx...this did it.

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

2 participants