Broadcasting message on a network ??? 
Author Message
 Broadcasting message on a network ???

hi

I'm about to develop an app which should have the ability to broadcast
it's existens on a network on startup. There should be no particular
server to broadcast to, but other machines on the network running the
app should respond to the broadcast.

Is this possible or ???

The app is developed using VB6 enterprise and should communicate using
TCP/IP. DCOM is also an option, but I would prefer TCP/IP. Any
comments ??

I've found out, that I should use UDP, but an example on how it's
implemented would be nice.

Any suggestions appriciated...

thanx
Morten



Sat, 08 Mar 2003 03:00:00 GMT  
 Broadcasting message on a network ???

    Try to find this control Cswsk32.ocx. It give u ability to send
broadcast message, but if u use broadcast u must use UDP, TCP/IP Doesn't
support broadcast( If I'm wrong pls let me know ).



Sun, 09 Mar 2003 10:05:06 GMT  
 Broadcasting message on a network ???

Hi,

In theory, you can, if you set all the host bits will all 1:   192.168.0.255
will be broadcasted to all PC on the network 192.168.0.0, but there is
probably more to just setting that destination address.

Vanderghast, Access MVP


Quote:
>     Try to find this control Cswsk32.ocx. It give u ability to send
> broadcast message, but if u use broadcast u must use UDP, TCP/IP Doesn't
> support broadcast( If I'm wrong pls let me know ).



Mon, 10 Mar 2003 03:00:00 GMT  
 Broadcasting message on a network ???

Read up on UDP Broadcasting or UDP Multicasting.

--
Monte Hansen
http://KillerVB.com


Quote:
> Hi,

> In theory, you can, if you set all the host bits will all 1:
192.168.0.255
> will be broadcasted to all PC on the network 192.168.0.0, but there is
> probably more to just setting that destination address.

> Vanderghast, Access MVP



> >     Try to find this control Cswsk32.ocx. It give u ability to send
> > broadcast message, but if u use broadcast u must use UDP, TCP/IP Doesn't
> > support broadcast( If I'm wrong pls let me know ).



Mon, 10 Mar 2003 03:00:00 GMT  
 Broadcasting message on a network ???
Are all the computers on the same domain?  If so, you could use
NetMessageBufferSend and just preset the values you want to remain
constant.   If you need an example check out:
http://www.mvps.org/vbnet/
search for NetMessageBufferSend and you will find the code.

Dana

Quote:

>hi

>I'm about to develop an app which should have the ability to broadcast
>it's existens on a network on startup. There should be no particular
>server to broadcast to, but other machines on the network running the
>app should respond to the broadcast.

>Is this possible or ???

>The app is developed using VB6 enterprise and should communicate using
>TCP/IP. DCOM is also an option, but I would prefer TCP/IP. Any
>comments ??

>I've found out, that I should use UDP, but an example on how it's
>implemented would be nice.

>Any suggestions appriciated...

>thanx
>Morten



Tue, 11 Mar 2003 03:00:00 GMT  
 Broadcasting message on a network ???

Hi

You can use UDP protocol with winsock.ocx very easily .
For example if your address is 200.200.200.1 etc. ( using subbnet
255.255.255.0) you must send UDP messages to 200.200.200.255 and specify a
port number.

I have tested this but you must know proper subnet in your LAN.
If you want write me and I'll send you code.

Sincerely , Siamak



Sun, 16 Mar 2003 23:34:24 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Network Broadcast Messages using Sockets

2. Broadcasting a message across a Network

3. help needed to interrogate network broadcast messages

4. API to send a network message (broadcast)

5. How to make a program which can broadcast message and receive broadcast message?

6. How to make a program which can broadcast message and receive broadcast message?

7. Sockets and Network Broadcasts

8. Broadcasting data over the network

9. A Simple Network Broadcast From VB?

10. Broadcast updated comment (Network Neighborhood) Win98

11. Network broadcast to signify action by client PCs

12. Network broadcast

 

 
Powered by phpBB® Forum Software