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. Dynamically change the TCP port of the client and server
Forum Updated to NodeBB v4.3 + New Features

Dynamically change the TCP port of the client and server

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 619 Views 2 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.
  • B Offline
    B Offline
    bygsbunny
    wrote on 4 Jan 2021, 19:41 last edited by
    #1

    Is this type of communication possible using QT?
    wireshark.png

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Jan 2021, 19:44 last edited by
      #2

      Hi and welcome to devnet,

      Usually ports are not dynamically changed, new connections are created and then used.

      Can you give more context on your use case ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply 4 Jan 2021, 19:52
      1
      • S SGaist
        4 Jan 2021, 19:44

        Hi and welcome to devnet,

        Usually ports are not dynamically changed, new connections are created and then used.

        Can you give more context on your use case ?

        B Offline
        B Offline
        bygsbunny
        wrote on 4 Jan 2021, 19:52 last edited by
        #3

        @SGaist This is a protocol from an old machine for which there is no documentation. I only have the Wireshark log. The closest I found was maybe Indy protocol. Specifically IdSimpleServer?
        indy.png

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 4 Jan 2021, 20:05 last edited by
          #4

          You will have to inspect the content of the messages exchanged. They will likely provide more information about what is done that requires these ports change. Or it might just be several different protocols communicating between the two machines.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply 4 Jan 2021, 20:42
          1
          • S SGaist
            4 Jan 2021, 20:05

            You will have to inspect the content of the messages exchanged. They will likely provide more information about what is done that requires these ports change. Or it might just be several different protocols communicating between the two machines.

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 4 Jan 2021, 20:42 last edited by
            #5

            as the different Seq/Ack counters indicate, these are two independent TCP connections. More capturing is needed to see the Syn/Ack/Ack Startup sequences.

            Regards

            Qt has to stay free or it will die.

            B 1 Reply Last reply 4 Jan 2021, 22:00
            2
            • A aha_1980
              4 Jan 2021, 20:42

              as the different Seq/Ack counters indicate, these are two independent TCP connections. More capturing is needed to see the Syn/Ack/Ack Startup sequences.

              Regards

              B Offline
              B Offline
              bygsbunny
              wrote on 4 Jan 2021, 22:00 last edited by
              #6

              This is complete Wireshark log file.
              Wireshark_log

              K 1 Reply Last reply 5 Jan 2021, 04:37
              0
              • B bygsbunny
                4 Jan 2021, 22:00

                This is complete Wireshark log file.
                Wireshark_log

                K Offline
                K Offline
                Kent-Dorfman
                wrote on 5 Jan 2021, 04:37 last edited by Kent-Dorfman 1 May 2021, 04:41
                #7

                @bygsbunny It may be the complete file but it cannot be the complete transaction summary for the connections in question. I'd suggest that there is some filtering going on so the log is incomplete.

                And by incomplete I mean your OP wireshark dump. I don't do online filesharing sites so I have no idea what is in the log link you posted.

                What I see in your OP is fragments of TWO distinct TCP sessions.

                1 Reply Last reply
                1
                • N Offline
                  N Offline
                  nagesh
                  wrote on 5 Feb 2021, 00:16 last edited by
                  #8

                  Based on the analysis of wireshark capture it seems that there exists multiple TCP/IP connection between the machine having IP's "192.168.40.1" and "192.168.40.21"
                  eg:
                  192.168.40.1:1067 <--------> 192.168.40.21:10012
                  192.168.40.1:1064 <--------> 192.168.40.21:10000

                  As mentioned in the snapshot of the application it looks like machine having IP 192.168.40.21{server} is having binding port range from [10000 - 10100]

                  Is this type of communication possible using QT?
                  

                  @bygsbunny Answer to your question is yes, it's possible to do this type of communication in QT.

                  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