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 data packet cannot be received
Forum Updated to NodeBB v4.3 + New Features

UDP data packet cannot be received

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 1.5k 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.
  • S Offline
    S Offline
    shalongbasi
    wrote on last edited by
    #1

    Just designed a program which use UDPSocket to receive UDP packets and display the data. At the beginning, the program developed under Ubuntu, it works fine. Then I copied the source codes to Windows 7 desktop without any modification, recompiled and it also works fine. Then I copied the .exe file from windows 7 to a laptop with windows XP, the GUI interface displayed correctly when exe file was running under windows XP, only programs is that it does not display any info from UDP packet. Looks like it did not receive any UDP packet. When I checked the UDP packet with WireShark under windows XP, WireShark captured all UDP packets correctly. Does any one knows what could possible be wrong? thanks for help.

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      Firewall?

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        Hi (just guessing) or it can be "an old XP error":http://support.microsoft.com/kb/257460 due to renumbering/mismatch of UDP constants like IP_ADD_MEMBERSHIP, if you included Winsock.h you got 5, if you included Ws2tcpip.h you got 12 :-(

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

          Is it broadcast message?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            shalongbasi
            wrote on last edited by
            #5

            Thanks everyone.

            For the firewall, I even uninstalled the AVG software and disabled windows firewall, still not working.

            For the header file, I do not know which one is included, I just include QUDPSocket

            It is not a broadcast message, messages is sent to fix address 10.10.10.11 and port 49166

            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