Re: Broadcast TCP/IP message to several clients



markspace wrote:
Knute Johnson wrote:
markspace wrote:
java.net.MulticastSocket ?

No. I'm 90% sure this is something else, don't use this. This is for a server sending streaming data to multiple clients, and it requires special network configuration. Most switches and gateways don't even support it. Regular ol' broadcast is what you want, not multicast.

Reading the OP's original post, I think he wants to send a signal to all of his clients to get them to start sending in data. Seems like the perfect use of multicast to me.



Excpet that, as I mentioned, almost nothing supports multicast, so the packets will never reach their destination.

Multicasting is kind of an orphan in the TCP/IP spec. It was intended to solve a problem no one really had, or wanted to solve. As far as I know, it'll be like pulling teeth to get any network administrators to configure their networks to support this, if it's even possible at all. And if you have to go through an ISP or 3rd party network, forget it.

I could be all wrong, but I'd check with whoever is in charge of the routers and gateways you'll have to go through before I wrote any lines of code at all.


I agree if he has to cross any router boundaries he will have problems. Inside a local network shouldn't be a problem.

UDP datagrams however can go anywhere. He could just send all of his clients plain datagrams, a little more coding but not that tough.

--

Knute Johnson
email s/nospam/knute2009/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.



Relevant Pages

  • Re: Broadcast TCP/IP message to several clients
    ... This is for a server sending streaming data to multiple clients, and it requires special network configuration. ... Regular ol' broadcast is what you want, not multicast. ... As far as I know, it'll be like pulling teeth to get any network administrators to configure their networks to support this, if it's even possible at all. ...
    (comp.lang.java.programmer)
  • Re: Discover Multicast Address
    ... There is no single multicast address for the current network. ... configure clients and servers to use the same address or have clients ... Developers for exciting positions in medical product ...
    (microsoft.public.dotnet.languages.csharp)
  • Broadcast and multicast using VW Opentalk
    ... I'm no network protocol guru by any means, ... I'm not sure that multicast or broadcast can do ... or whether it would work on clients over the internet. ... I suppose the point is, the clients will be anywhere on the internet, ...
    (comp.lang.smalltalk)
  • Re: Two NLB Clusters on Same Subnet Causing Network Problems
    ... Unicast and multicast in network environments mean the ... NICs in your server, or weather or not your admin and lb nics are on the ... The clients all ...
    (microsoft.public.windows.server.clustering)
  • Re: Where to set up the multicast ip address during the configuration of NLB with IGMP?
    ... I configure the Network Load Balancing with Multicast IGMP. ... Server 1 uses the *.*.*.14 for processing the requests, ... and virtal IP address for clients to access is ...
    (microsoft.public.windows.server.clustering)