Skip to content

Make the "peers" into actual peers #2

@selimaj-dev

Description

@selimaj-dev

Currently the peers are only a client-server system, that is fine in theory, but usually most homes consists of a dynamic IP address, making this more complex, not only we need to keep track of the changing IP address, but we also need to do hole punching which is known for it's complexity.

Possible solution

Make the gateway server into a router, basically the peer won't need to serve, it will receive the command from the gateway that it needs to establish a connection.

Peer 1 -> Gateway -> Peer 2
instead of Peer 1 -> Peer 2

again because neither peer 1 or peer 2 may not be able to serve directly, using the gateway is a nice alternative, ALSO NOTE: the connection between Peer 1 and Peer 2 is end-to-end encrypted thus the gateway will only know which peer to send it to

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions