473,382 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to detect blocked UDP multicast port

Hi -

Can't see another newsgroup to post this in; so thought I'd post here.

I have a C# application that relies on multicast UDP to detect how many PCs
the application is executing on concurrently. This works okay providing the
port is open but fails miserably if the port is blocked by a firewall.

All applications provide a server listening on the port for the ping but for
some reason on the PC sending the ping irrespective of whether the port is
open or blocked the request is still received. So I cannot even use this to
detect that the port has been blocked.

Any ideas on how to workaround this or an alternative would be greatly
appreciated?

TIA

- Andy
Aug 16 '08 #1
1 3665
On Sat, 16 Aug 2008 03:30:07 -0700, Andy Bates <an**@ussdev.comwrote:
Hi -

Can't see another newsgroup to post this in; so thought I'd post here.
There are in fact newsgroups dedicated to network programming, independent
of whatever language/platform being used. I don't know the names off the
top of my head, but for the best answers, that's where you'll find the
experts.
I have a C# application that relies on multicast UDP to detect how many
PCs
the application is executing on concurrently. This works okay providing
the
port is open but fails miserably if the port is blocked by a firewall.
All applications provide a server listening on the port for the ping but
for
some reason on the PC sending the ping irrespective of whether the port
is
open or blocked the request is still received. So I cannot even use this
to
detect that the port has been blocked.
It sounds like it's a NAT router blocking the datagram, not a firewall.
Which means that outbound traffic causes the router to set up a mapping
back to the sender, which allows responses to come back. A firewall would
just block the port without exception (other than that configured by the
user, of course).

The easiest solution is to just require the user to configure the NAT
router to forward traffic on your multicast port. A slightly more
complicated, but generally more reliable approach would be to implement
Universal Plug and Play support so that you can look for and configure a
NAT router explicitly.

Pete
Aug 16 '08 #2

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

Similar topics

2
by: nazgulero | last post by:
Hello all, I am fairly new to C++, and I am trying to write a client/server API for multicast. I have come across the script below, but for some reason, the server does not get any of the...
1
by: nazgulero | last post by:
Hello all, I am fairly new to C, and I am trying to write a client/server API for multicast. I have come across the script below, but for some reason, the server does not get any of the...
9
by: mBird | last post by:
I wrote a service that listens for broadcast messages from my firewall (UDP snmp trap messages) and parses and puts the data in an database. I'd also like to write an app that is a simple form...
2
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...
1
by: Naveen Mukkelli | last post by:
Hi, When I run 2 or more clients on the same machine, the first client application is receiving multicast messages but not the subsequent clients. I'm using the same, multicast address and...
2
by: Jim | last post by:
Tried a search, but didn't find quite what I was looking for. Situation: Have a VBA code process, tapping CDOSYS to send e-mail from Access, attaching an Excel spreadsheet, to a given list of...
3
by: ricolee99 | last post by:
Hi Everyone, I'm using the System.IO.Ports.SerialPort component to attempt to kill an existing component opened by another application. I use the following code: SerialPort serialPort = new...
7
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...
1
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"));...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.