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 678 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 last edited by
    #1

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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      1
      • SGaistS SGaist

        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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          aha_1980A 1 Reply Last reply
          1
          • SGaistS SGaist

            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.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 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
            2
            • aha_1980A aha_1980

              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 last edited by
              #6

              This is complete Wireshark log file.
              Wireshark_log

              Kent-DorfmanK 1 Reply Last reply
              0
              • B bygsbunny

                This is complete Wireshark log file.
                Wireshark_log

                Kent-DorfmanK Offline
                Kent-DorfmanK Offline
                Kent-Dorfman
                wrote on last edited by Kent-Dorfman
                #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
                • nageshN Offline
                  nageshN Offline
                  nagesh
                  wrote on 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