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. Run Qt network program in windows and linux
Forum Updated to NodeBB v4.3 + New Features

Run Qt network program in windows and linux

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.3k 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.
  • zhmhZ Offline
    zhmhZ Offline
    zhmh
    wrote on last edited by A Former User
    #1

    Hi
    I have qt network program ,when Run both side(server-gui and client) in qt creator in ubuntu with ip="127.0.0.1" ,port=6424 ,they are connected together,and also when run both side in qt creator in windows with ip="127.0.0.1" ,port=6424 ,they are connected together,
    and when run client side in windows and run my server in ubuntu and set my ubuntu ip="192.168.1.183" port=6424 to connect they are connected together again
    when inverse it ,run client in ubuntu and server in windows and set my windows ip=192.168.1.198 port=6424 to connect they can't connect together
    but when run myserver.exe (generated in qt creator in windows and add .dll it need according to this link) and run client in ubuntu they can connected together !!!!!!!!!!!!!
    I create script wizard for my server-gui when install and run from windows and run my client in ubuntu they can't connect together
    Why is this happening??how can I fix this??

    Best Regards

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you check that the Windows firewall doesn't block that port ?

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

      1 Reply Last reply
      1
      • zhmhZ Offline
        zhmhZ Offline
        zhmh
        wrote on last edited by zhmh
        #3

        tnx for your reply :)
        yes I turn off my firewall and it's work!!!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then turn the firewall on again and add a rule that allows the use of that port.

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

          1 Reply Last reply
          0
          • zhmhZ Offline
            zhmhZ Offline
            zhmh
            wrote on last edited by
            #5

            ok,sure.....

            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