Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. broadcasting data using UDP winsocket control... [modified]

broadcasting data using UDP winsocket control... [modified]

Scheduled Pinned Locked Moved Visual Basic
sysadmintutorial
6 Posts 2 Posters 0 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.
  • J Offline
    J Offline
    jainiraj
    wrote on last edited by
    #1

    How to broadcast data over LAN network using UDP protocol through the winsock control in VB6.0. I found connect() method as- winsockClient.connect(0,5050) where 0 is indicating broadcasting and 5050 is local port no. But it is not working. Is there any way to broadcast data using UDP protocol. Thanks in adv......

    modified on Monday, September 20, 2010 9:43 AM

    D 1 Reply Last reply
    0
    • J jainiraj

      How to broadcast data over LAN network using UDP protocol through the winsock control in VB6.0. I found connect() method as- winsockClient.connect(0,5050) where 0 is indicating broadcasting and 5050 is local port no. But it is not working. Is there any way to broadcast data using UDP protocol. Thanks in adv......

      modified on Monday, September 20, 2010 9:43 AM

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      Don't use VB6 any more, so can't say this is right or wrong, but at least it is an example to try; http://www.programmersheaven.com/mb/vba/268917/268917/sending-binary-data-via-udp-protocol-winsock/[^] Vb6 = time to move on.....

      Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

      J 1 Reply Last reply
      0
      • D DaveAuld

        Don't use VB6 any more, so can't say this is right or wrong, but at least it is an example to try; http://www.programmersheaven.com/mb/vba/268917/268917/sending-binary-data-via-udp-protocol-winsock/[^] Vb6 = time to move on.....

        Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

        J Offline
        J Offline
        jainiraj
        wrote on last edited by
        #3

        Thanks for ur reply and suggestion. But I have so limitation thats why I have to work on tje VB6.Now come on the topic.. The link U have given has very good example.But I have to broadcast the data over LAN network. So which remotehost I have to use or is there any method to broadcast over network? Thanks in adv..

        D 1 Reply Last reply
        0
        • J jainiraj

          Thanks for ur reply and suggestion. But I have so limitation thats why I have to work on tje VB6.Now come on the topic.. The link U have given has very good example.But I have to broadcast the data over LAN network. So which remotehost I have to use or is there any method to broadcast over network? Thanks in adv..

          D Offline
          D Offline
          DaveAuld
          wrote on last edited by
          #4

          What? The RemoteHost IP Address is the endpoint of the communication, it doesn't matter if it is an internal or external IP. the traffic will be routed round the internal network until it reaches the gateway with the external bridge and then continue to its destination on the external network.

          Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

          J 1 Reply Last reply
          0
          • D DaveAuld

            What? The RemoteHost IP Address is the endpoint of the communication, it doesn't matter if it is an internal or external IP. the traffic will be routed round the internal network until it reaches the gateway with the external bridge and then continue to its destination on the external network.

            Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

            J Offline
            J Offline
            jainiraj
            wrote on last edited by
            #5

            Suppose I use Rmote host as "127.0.9.8" which is in network.But whgn I send the data over the network then system connected in the network do'nt find it and do'nt respond it. and When I use Remote host as "255.255.255.255" then all the systems detect the data as "255.255.255.255" is the broadcast address. That was the question I was finding.

            D 1 Reply Last reply
            0
            • J jainiraj

              Suppose I use Rmote host as "127.0.9.8" which is in network.But whgn I send the data over the network then system connected in the network do'nt find it and do'nt respond it. and When I use Remote host as "255.255.255.255" then all the systems detect the data as "255.255.255.255" is the broadcast address. That was the question I was finding.

              D Offline
              D Offline
              DaveAuld
              wrote on last edited by
              #6

              See this, (there are bound to be other definitions on the net if you go looking; BroadCast Adddress[^] Basically, 255.255.255.255 is a broadcast address and will only broadcast to end points within the same network subnet/segment. And a little refresher on UDP[^]

              Dave Find Me On: Web|Facebook|Twitter|LinkedIn CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups