Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Establish Peer to Peer over Internet
Forum Updated to NodeBB v4.3 + New Features

Establish Peer to Peer over Internet

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 710 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LuckyScooby
    wrote on last edited by LuckyScooby
    #1

    Re: Peer to Peer Connection

    Hey, it is said in the last reply from the above topic link:
    "The only challenge you face, is to come up with a system to establish that first connection. I have used UPD broadcast messages for that in the past, but a better solution is of course to use something like Zeroconf for service registration and discovery."

    It's OK for me to implement P2P in a local environment, since I could just scan the network (I'm sure there is a better solution for that);
    but my real concern is how am I supposed to connect to a first peer in the Internet without knowing its address, definitely I would not try to scan the whole Internet! haha

    @andre mentions zeroconf and UDP broadcast messages.; how is that? is there any better solution today? (the referenced topic is 7 years old).

    aha_1980A 1 Reply Last reply
    0
    • L LuckyScooby

      Re: Peer to Peer Connection

      Hey, it is said in the last reply from the above topic link:
      "The only challenge you face, is to come up with a system to establish that first connection. I have used UPD broadcast messages for that in the past, but a better solution is of course to use something like Zeroconf for service registration and discovery."

      It's OK for me to implement P2P in a local environment, since I could just scan the network (I'm sure there is a better solution for that);
      but my real concern is how am I supposed to connect to a first peer in the Internet without knowing its address, definitely I would not try to scan the whole Internet! haha

      @andre mentions zeroconf and UDP broadcast messages.; how is that? is there any better solution today? (the referenced topic is 7 years old).

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @LuckyScooby

      you need a central server where all clients register themselves. then you can hand over the connection so two clients are directly connected. this also solves the problem with NAT routers, because your clients would be invisible behind them otherwise.

      Qt has to stay free or it will die.

      L 1 Reply Last reply
      2
      • aha_1980A aha_1980

        @LuckyScooby

        you need a central server where all clients register themselves. then you can hand over the connection so two clients are directly connected. this also solves the problem with NAT routers, because your clients would be invisible behind them otherwise.

        L Offline
        L Offline
        LuckyScooby
        wrote on last edited by LuckyScooby
        #3

        @aha_1980
        So peer-to-peer is not decentralized at all.
        I thought of Microsoft's PNRP, but: it is also semi-decentralized (and platform specific).

        So in torrent "language", these servers are trackers, right? Right.. but then Wikipedia states:
        "Since the creation of the distributed hash table (DHT) method for "Trackerless" torrents, BitTorrent trackers have largely become redundant."

        I'd better research more about DHT.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved