Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / October 2006

Tip: Looking for answers? Try searching our database.

Share UdpClient broadcast receive - same port & IP address

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 07 Oct 2006 19:38 GMT
Hi;

It looks like the UdpClient set to join a broadcast cannot have 2 programs
on the same machine both join the same broadcast. They both join ok, but only
1 gets the broadcasts.

Is there any way to set it up so multiple instances of my app can all get
the same broadcasts?

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Charles Wang[MSFT] - 09 Oct 2006 08:10 GMT
Hi Dave,
As far as I know, join is used for Multicastgroup.
Do you mean that your two client applications receive the broadcasting
packages on the same port?

Anyway, according to my experiences, I'm afraid that you can only have one
program receive the message, because the server only broadcast one copy of
the pakage to each client, so if one program firstly uses the port and
receives the package, the other program won't get it again.

Could you please tell me more about your intent and see if we can find
another way to accomplish it?

If you have any other questions or concerns, please feel free to let me
know. It's my pleasure to be of assistance.

Sincerely,
rles Wang
Microsoft Online Community Support

======================================================
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
David Thielen - 09 Oct 2006 17:43 GMT
Yes - that is exactly the problem

Our program is a library that other programs can link to and it listens for
that broadcast. If several instances are running on the same machine we want
all to receive the broadcast.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hi Dave,
> As far as I know, join is used for Multicastgroup.
[quoted text clipped - 23 lines]
> This posting is provided "AS IS" with no warranties, and confers no rights.
> ======================================================
Charles Wang[MSFT] - 10 Oct 2006 12:44 GMT
Dear Dave,
I'm afraid that common Network API can't help you resolve this issue. Your
issue may be resolved by Sniffer which runs at a lower level. Unfortunately
Microsoft doesn't provide such APIs to do this. There are some third-party
SDK APIs which may help you.
You can refer to:
http://www.surfpack.com/downloads/Packet-Sniffer-SDK-for-Windows-for-Microso
ft-VC-compatible-compilers/3676.html

Also, you may consider to write a custom service to get the broadcast
packets and then publish the packets to your programs.

This response contains a reference to a third party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft
does not control these sites and has not tested any software or information
found on these sites; therefore, Microsoft cannot make any representations
regarding the quality, safety, or suitability of any software or
information found there. There are inherent dangers in the use of any
software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from
the Internet.

Sincerely,
Charles Wang
Microsoft Online Community Support

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.