Skip to content

LocalLookupService.lookup timeout but works with CloudLookupService.lookup  #19

Description

@mrlux

Hey,

First of all, I want to thank you for creating this library.
I received my Eufy battery doorbell last week and I'm thrilled to see that I can already start playing with it.
I started with the examples repo and everything worked perfectly (HTTP, push).
When trying to connect locally over the p2p connection I hit a timeout issue with the LocalLookupService.
I switched then to the run.ts in this repo and tested the cloud version witch worked like a charm:

const mainP2pCloud = async () => {
  const lookupService = new CloudLookupService();
  try {
    const addresses = await lookupService.lookup(P2P_DID, DSK_KEY);
    console.log('Found addresses', addresses);
  } catch (err) {
    console.error('Not found any address...', err);
  }
};
Found addresses [
  { host: 'xx.xx.xx.xx', port: xxxx },
  { host: '192.168.x.x', port: xxxx }
]

If I use the LocalLookupService:

const mainP2pLocal = async () => {  
  const lookupService = new LocalLookupService();   
  try {
    const address = await lookupService.lookup(LOCAL_STATION_IP);
    console.log('Found address', address);
  } catch (err) {
    console.error('Not found any address...', err);
  }
};
Not found any address... Timeout on address: 192.168.x.x

the 192.168.x.x is the local base station 2 IP address.

Could you point me in a certain direction to solve this issue?
Am I doing something wrong ?
Is it related to my router/network/pihole setup you think?
Could you explain to me what is actually broadcasted to the network?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions