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. UDP only working one way
Forum Updated to NodeBB v4.3 + New Features

UDP only working one way

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.4k 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.
  • H Offline
    H Offline
    Hyprodimus Prime
    wrote on last edited by
    #1

    Hello,

    My Windows PC, Ubuntu VM, and Raspberry Pi are all on a LAN, and I have built the Qt UDP client and server examples on all three. It works when the VM or Pi are sending, but not when my Windows PC is sending. I havent changed any code, the ports are all the same as the default example's. Does anyone know why this might happen? Thank you.

    the_T 1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Firewall on your Windows PC?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hyprodimus Prime
        wrote on last edited by
        #3

        I dont think that is it. I have tried disabling it all together and I get the same results. On top of that, even when it is ok, the outbound connection setting is set to Allowed (default).

        1 Reply Last reply
        0
        • H Hyprodimus Prime

          Hello,

          My Windows PC, Ubuntu VM, and Raspberry Pi are all on a LAN, and I have built the Qt UDP client and server examples on all three. It works when the VM or Pi are sending, but not when my Windows PC is sending. I havent changed any code, the ports are all the same as the default example's. Does anyone know why this might happen? Thank you.

          the_T Offline
          the_T Offline
          the_
          wrote on last edited by
          #4

          @Hyprodimus-Prime

          Just to clarify:

          On what platform is the server running?
          Are all incomming connections allowed on each device?

          -- No support in PM --

          H 1 Reply Last reply
          0
          • the_T the_

            @Hyprodimus-Prime

            Just to clarify:

            On what platform is the server running?
            Are all incomming connections allowed on each device?

            H Offline
            H Offline
            Hyprodimus Prime
            wrote on last edited by
            #5

            @the_

            Server is Windows, Virtual machine is Ubuntu, Raspberry Pi is running Raspbian.
            Only the Windows machine has a firewall, and communication doesnt work even when it is off.

            Pi->Windows : OK
            Pi->Ubuntu: OK
            Pi->Pi local: OK
            Ubuntu->Windows: OK
            Ubuntu->Pi: OK
            Ubuntu->Ubuntu local: OK
            Windows->Windows local: OK
            Windows->Ubuntu: Not OK
            Windows->Pi: Not OK

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hyprodimus Prime
              wrote on last edited by
              #6

              Solved:
              I was using QHostAddress::Broadcast which is 255.255.255.255
              I needed to have the local IP subnet 192.168.137 and then .255 for multicast.

              I am assuming that it is not a windows thing, it is just an feature of being the LAN host?

              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