Seeking Advice for Creating a Peer-to-Peer Network for Internet Sharing šŸŒ

Hey Reddit community!

Iā€™ve got an exciting project in mind and Iā€™m eager to hear your thoughts and suggestions. Iā€™m looking to develop a Peer-to-Peer (P2P) network that can route internet traffic through the nearest available hotspot or a nearby userā€™s device with a working internet connection. The aim is to assist folks who struggle with unreliable internet connections by allowing them to connect to a nearby userā€™s stable connection.

Key Features Iā€™m Exploring:

  • Seamless connection to the nearest available hotspot networks.
  • The ability to reject connection requests to certain domains (for privacy and security).
  • Essentially, think of it as a ā€˜hotspot wrapperā€™ or a similar concept.

Iā€™d love to know if anyone has experience with P2P networks or similar projects. What technologies, tools, or best practices would you recommend for building such a system? Your insights and advice would be greatly appreciated!

Thanks for your input! :blush:

i think your goal is akin to WiFi Master Key, you may start from their journey

the downside is that, the hotspot provider e.g another phone user need to sacrifice their battery power even if there are no connected client to their phone. what is your view on this?

also (since youā€™re posting in this subreddit,) WireGuard might be useful for encrypting in-transit data when flowing through the hotspot provider. think of it like:

 - Clear text data
 = Wireguard tunnel

[ Origin ---(Wireguard)=]===[ Peer ]===[ Exit node/VPN? ]---[ Destination ]

Youā€™re absolutely right about the downside of hotspot providers sacrificing their battery power, which can be a significant concern. Balancing this with user incentives and efficient power management would be crucial for a successful implementation. Regarding WireGuard, itā€™s an excellent suggestion for enhancing security during data transit through the hotspot provider.

But what Iā€™m trying to achieve is a app which creates a (Peer-to-Peer) network between mobile devices and letā€™s say one of the device donā€™t have access to the internet then it can connect to the nearest devices available in the network and routes traffic through that peer in the network whose internet is working. But I want to allow only certain request to pass and not all. Do you think it is possible?