broadcasting data using UDP winsocket control... [modified]
-
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
-
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
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.
-
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.
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..
-
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..
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.
-
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.
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.
-
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.
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.