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

Doesn't checks for IP change #108

Closed
dakky221 opened this issue Aug 8, 2021 · 13 comments
Closed

Doesn't checks for IP change #108

dakky221 opened this issue Aug 8, 2021 · 13 comments

Comments

@dakky221
Copy link

dakky221 commented Aug 8, 2021

On dynamic IP connections, where public external IP likes to change multiple times per day, the miner doesn't checks for the real external IP.

That leads to the wrong IP being reported to the blockchain and eventually relayed connection. Rebooting the miner is a workaround as it then updates the chain with the new current IP and is no longer relayed.

Simple workaround is to add periodic check for external public IP and update the chain when necessary. Something like dynamic dns updaters do.

@dakky221
Copy link
Author

dakky221 commented Aug 8, 2021

So let me just add more comments on this... so with helium hiker bot, it is possible to see the listen_addr written in blockchain... it says something like

+----------------------------+
| listen_addrs (prioritized) |
+----------------------------+
|/ip4/93.137.187.46/tcp/44158|
+----------------------------+

After the public ip changes, that record stays unchanged till the reboot of the miner itself. Then it updates the record and beacons start coming through.

@shawaj
Copy link
Member

shawaj commented Aug 8, 2021

You would need to report that at https://github.com/helium/miner instead as it is helium libp2p in the miner code that deals with reporting the IP address to the blockchain

@dakky221
Copy link
Author

dakky221 commented Aug 8, 2021

I figured out it has to do with Nebra because Sensecap determines the correct public ip on its own and Nebra determines it only after a reboot/power cycle.

@shawaj
Copy link
Member

shawaj commented Aug 10, 2021

I find it hard to believe that is the case. Probably you just need to leave it longer for libp2p to pick up the new IP address.

Almost every provider these days uses a dynamic IP address unless you specifically pay extra for static IP. If this was really an issue I would expect it to have been reported many many times before.

Having said that, if you have can send an email ticket to us with the details listed here https://helium.nebra.com/support?id=email

And reply back with your ticket number, then we can take a look at your specific unit.

Please also link to this issue in the email so we can know they are related.

@shawaj
Copy link
Member

shawaj commented Aug 10, 2021

@dakky221 forgot to tag you

@anthonyra
Copy link

Interesting @dakky221 do you know if Sensecap runs the miner in a Docker container? I "believe" Nebra does and so does Bobcat and they both have issues with updating the dynamic IP address...

@dakky221
Copy link
Author

I have no idea. I solved it by putting Nebra on a smart plug, it reboots it every time the IP changes. Works so far.

@karlbnapf
Copy link

I have the same problem with a RAK hotspot. Wouldn't it generally be an option to let users specify a DynDNS name?

@dakky221
Copy link
Author

Yeah, it would help, but as Shawaj said it's not Nebra's issue but Helium so it should be asked there. not here.

@MagNaMan
Copy link

If anyone wants a simple app to track and text or email yourself.
https://www.gearboxcomputers.com/products/ip-watcher/

@anthonyra
Copy link

I have the same problem with a RAK hotspot. Wouldn't it generally be an option to let users specify a DynDNS name?

Are you sure it's the same issue? I've seen issues with RAK staying sync which would be different than having the wrong or no listen_addrs.. because your miner does outbound request for blocks to sync. If you have a screwed up listen_addrs all out bound are unaffected (challenge creations, witnesses, and data credits) the only inbound is beacons.

@shawaj
Copy link
Member

shawaj commented Aug 22, 2021

Related to helium/miner#998 and helium/miner#916

@shawaj
Copy link
Member

shawaj commented Sep 18, 2021

Closed by helium/erlang-libp2p#379

@shawaj shawaj closed this as completed Sep 18, 2021
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

5 participants