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. [SOLVED]QUdpSocket & broadcast & Windows7
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]QUdpSocket & broadcast & Windows7

Scheduled Pinned Locked Moved General and Desktop
15 Posts 3 Posters 10.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.
  • Q Offline
    Q Offline
    qxoz
    wrote on last edited by
    #6

    When I use the address like 192.168.18.255, the network device does not respond.
    Respond only for 255.255.255.255 or its own address.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #7

      The actual network address depends on your IP subnet and the netmask. The web has uncountable IP calculators that help you to find out yours.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on last edited by
        #8

        I do not quite understand.
        But when I wrote "I use the address like 192.168.18.255" I mean xx.xx.xx.255, where xx.xx.xx is my.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #9

          And you do use a /24 = class C = netmask 255.255.255.0 network?

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qxoz
            wrote on last edited by
            #10

            Yes, that's right

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on last edited by
              #11

              I tried to compile with MinGW and VC, result is same .

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #12

                Maybe you can post some sample code, so that someone with a Win7 box can try it.

                Also make sure that neither a firewall nor a virus or malware scanner is in the way. Additionally you might need to have higher privilges for sending broadcasts, but I'm not sure about this, I might be wrong.

                According to "QTBUG-13516":https://bugreports.qt.nokia.com//browse/QTBUG-13516 there has been an issue with UDP broadcasts on Vista.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  qxoz
                  wrote on last edited by
                  #13

                  Well, you can try Broadcasting sender and receiver example from Qt. If receiver and sender on one machine they work but wireshark didnt see the transmit and other computers on network too. If receiver and sender located on different machines nothing happening.

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    qxoz
                    wrote on last edited by
                    #14

                    I tried using Boost.asio, but the result is same. I can not understand what is the problem. Firewall and antivirus disabled. It's not a bug of QUdpSocket, can somebody tell where to look next ?

                    1 Reply Last reply
                    0
                    • Q Offline
                      Q Offline
                      qxoz
                      wrote on last edited by
                      #15

                      I think I understand what the problem was. On computers that I use some older programs are installed and they have changed during installation
                      several system files. By default, on clean Windows everything is working fine.

                      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