Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 有人做过UDP nat穿透的没,用QT实现?
Forum Updated to NodeBB v4.3 + New Features

有人做过UDP nat穿透的没,用QT实现?

Scheduled Pinned Locked Moved Chinese
7 Posts 2 Posters 4.2k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    foxgod
    wrote on last edited by
    #1

    有人做过UDP nat穿透的没,用QT实现,从一个局域网到两外一个局域网,我按照原理写,两个局域网中的电脑向一个公网IP发送请求,公网记住两个内网机子的外网IP和端口,然后一个像两外一个发请求,然后一个在想另外一个发请求,可以没实现?

    http://www.qtcn.org/bbs/read-htm-tid-57400.html

    1 Reply Last reply
    0
    • I Offline
      I Offline
      Ildar
      wrote on last edited by
      #2

      I don't understand you, but QT is not Qt.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        foxgod
        wrote on last edited by
        #3

        有人知道不为啥不???

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Ildar
          wrote on last edited by
          #4

          IMHO, QT - may be Quality Time, QuickTime or other, but Qt - software framework. "Wikipedia":http://en.wikipedia.org/wiki/QT

          1 Reply Last reply
          0
          • F Offline
            F Offline
            foxgod
            wrote on last edited by
            #5

            my server has gotten clientA and clientB's LAN's ip and port ,now clientA send a message to clientB , server tell clientB to connecte clientA. clientB is start to connecte clientA, but both are not get message from each other.

            1 Reply Last reply
            0
            • I Offline
              I Offline
              Ildar
              wrote on last edited by
              #6

              bq. clientB to connecte clientA

              UDP are can not establish connection, only send and receive messages. Maybe I did not understood you correctly
              And are you can show problem code?

              1 Reply Last reply
              0
              • F Offline
                F Offline
                foxgod
                wrote on last edited by
                #7

                [quote author="Ildar" date="1410842897"]bq. clientB to connecte clientA

                UDP are can not establish connection, only send and receive messages. Maybe I did not understood you correctly
                And are you can show problem code?[/quote]

                you can download my code form this address.

                http://www.qtcn.org/bbs/read-htm-tid-57400.html

                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