473,568 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Discover Multicast Address

Hi, im writing a program that uses the multicast address to send data to
multiple clients at the same time. I would like to be able to get the
multicast address of the current network programmaticall y...is this possible,
and if yes, how? ive done google searches, yet i havent found a thing on how
to do this. thanks!
--
-iwdu15
Sep 21 '07 #1
2 1789

There is no single multicast address for the current network. A set
of multicast addresses (224.0.0.0 to 224.0.0.255 for local lan) are
available and you can choose to broadcast to any of them. The clients
have to be listening to the same address. You either need to
configure clients and servers to use the same address or have clients
check a list of possible addresses till it finds data being sent by
the expected server.

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Fri, 21 Sep 2007 11:58:00 -0700, iwdu15 <jmmgoalsteraty ahoodotcom>
wrote:
>Hi, im writing a program that uses the multicast address to send data to
multiple clients at the same time. I would like to be able to get the
multicast address of the current network programmaticall y...is this possible,
and if yes, how? ive done google searches, yet i havent found a thing on how
to do this. thanks!
Sep 21 '07 #2
ok, thatl work. thanks a lot!
--
-iwdu15
Sep 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3477
by: Jörn Petersen | last post by:
Hello NG! I've been playing a little with Multiple-Destination Messaging in MSMQ using multicast addresses. I'm trying to assign a multicast address to a queue with C# code (using a MessageQueue object from the System.Messaging namespace), but so far I didn't succeed. When using the Computer Management snap-in of the MMC, the ...
2
2096
by: Naveen Mukkelli | last post by:
Hi, I'm sending multicast messages UDP socket and C#. But the receiving clients are not receiving all the messages. Receiving clients are missing out some messages. When I debug the server side, the messages are being sent correctly, but receiving side side is missingout some messages. What could be the problem and how can we solve this...
2
3115
by: Terry | last post by:
I've got a strange problem receiving multicast packets in a C# application. What's strange is that it works *sometimes* but not always. I create a socket, call bind(), set the multicast socket option and then fire off a thread that calls "receiveFrom()" in a loop. This works sometimes, but other times it'll get into a funk where the...
0
1612
by: Nuno Magalhaes | last post by:
The MSDN says that I have to bind the socket on a local address to use ReceiveFrom function. How can I bind the socket on a multicast address in order to get the multicast data. Say that I want to receive data that is sent from 10.154.0.104:554 to 224.1.2.3:554. How can I get the data at 224.1.2.3:554 since this is a multicast address, and...
3
2024
by: stacy | last post by:
I am developing an application that must look out over TCP on an ethernet connection to locate our proprietary devices. The Web application and the devices are communicating over ethernet with TCP using known IP addresses at present. We would like to design a method to discover devices in the system without knowing their IP addresses. Is...
7
8439
by: pietro.cerutti | last post by:
Hi guys, I have a daemon running on Debian and listening for multicast packets sent to 224.0.0.251:5353 (ZeroConf Multicast DNS queries). The server is plugged into a VLAN trunk with eth0 and joins several VLANs using virtual interfaces (i.e. eth0.xxx). It should be able to capture the UDP packets on any interfaces, so it spawns a thread for...
1
4154
by: Jayme.Pechan | last post by:
I was working on a multicast client and ran into a possible problem. Here is the code... udpClient = new UdpClient(4000); udpClient.JoinMulticastGroup(IPAddress.Parse("224.1.1.1")); udpClient.BeginReceive(new AsyncCallback(DoUDPReceive), this); My concern is that it seems to make exclusive use of port 4000 so I worry that in a Citrix...
0
1590
by: Stodge | last post by:
I'm trying to get a simple multicast application working using Twisted; so far I have: from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor from twisted.application.internet import MulticastServer class MulticastServerUDP(DatagramProtocol): def startProtocol(self): print 'Started Listening'
1
2065
by: Jean-Paul Calderone | last post by:
On Thu, 9 Oct 2008 06:03:44 -0700 (PDT), Stodge <stodge@gmail.comwrote: Your server and client are both listening on the multicast address 224.0.0.1. Traffic sent to that address will be delivered to both of them. If you want to send something to all clients listening on that address, then that's the address to pass to transport.write. ...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.