Hi:

I need a way to make sure that only one instance of a program is running
on a particular intranet. I thought that some kind of Broadcast message
might do the trick, or maybe a UDP query. I'm using a WinForms
application on .NET 2.0

Can anyone help me with this?

TIA,
Martin.

Re: Using a Broadcast message on an intranet by Vadym

Vadym
Wed Oct 03 11:58:05 PDT 2007

Hello, Martin!

UDP scenario has some drawbacks. UDP broadcasts may not be allowed between
intranets.
OTOH if there must be one app per intranet then broadcasts can do the job.

Also, instead of UDP broadcast you should use multicast.

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Wed, 03 Oct 2007 17:56:05 +0200:

MH> Hi:

MH> I need a way to make sure that only one instance of a program is
MH> running on a particular intranet. I thought that some kind of
MH> Broadcast message might do the trick, or maybe a UDP query. I'm
MH> using a WinForms application on .NET 2.0

MH> Can anyone help me with this?

MH> TIA,
MH> Martin.




Re: Using a Broadcast message on an intranet by Martin

Martin
Thu Oct 04 02:55:19 PDT 2007

Vadym:

Do you have an example of using multicast I can see?

TIA,
Martin.


Vadym Stetsiak escribió:
> Hello, Martin!
>
> UDP scenario has some drawbacks. UDP broadcasts may not be allowed between
> intranets.
> OTOH if there must be one app per intranet then broadcasts can do the job.
>
> Also, instead of UDP broadcast you should use multicast.
>
> --
> With best regards, Vadym Stetsiak.
> Blog: http://vadmyst.blogspot.com
>
> You wrote on Wed, 03 Oct 2007 17:56:05 +0200:
>
> MH> Hi:
>
> MH> I need a way to make sure that only one instance of a program is
> MH> running on a particular intranet. I thought that some kind of
> MH> Broadcast message might do the trick, or maybe a UDP query. I'm
> MH> using a WinForms application on .NET 2.0
>
> MH> Can anyone help me with this?
>
> MH> TIA,
> MH> Martin.
>
>
>

Re: Using a Broadcast message on an intranet by Vadym

Vadym
Thu Oct 04 11:47:10 PDT 2007

Hello, Martin!

Have a look at
http://www.codeproject.com/cs/internet/multicast.asp

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Thu, 04 Oct 2007 11:55:19 +0200:

MH> Vadym:

MH> Do you have an example of using multicast I can see?

MH> TIA,
MH> Martin.


MH> Vadym Stetsiak escribió:
>> Hello, Martin!

>> UDP scenario has some drawbacks. UDP broadcasts may not be allowed
>> between intranets.
>> OTOH if there must be one app per intranet then broadcasts can do the
>> job.

>> Also, instead of UDP broadcast you should use multicast.

>> --
>> With best regards, Vadym Stetsiak.
>> Blog: http://vadmyst.blogspot.com

>> You wrote on Wed, 03 Oct 2007 17:56:05 +0200:

MH>>> Hi:

MH>>> I need a way to make sure that only one instance of a program is
MH>>> running on a particular intranet. I thought that some kind of
MH>>> Broadcast message might do the trick, or maybe a UDP query. I'm
MH>>> using a WinForms application on .NET 2.0

MH>>> Can anyone help me with this?

MH>>> TIA,
MH>>> Martin.




Re: Using a Broadcast message on an intranet by Martin

Martin
Fri Oct 05 00:06:58 PDT 2007

Vadym:

Perfect, thanks for your help.

Regards,
Martin.


Vadym Stetsiak escribió:
> Hello, Martin!
>
> Have a look at
> http://www.codeproject.com/cs/internet/multicast.asp
>
> --
> With best regards, Vadym Stetsiak.
> Blog: http://vadmyst.blogspot.com
>
> You wrote on Thu, 04 Oct 2007 11:55:19 +0200:
>
> MH> Vadym:
>
> MH> Do you have an example of using multicast I can see?
>
> MH> TIA,
> MH> Martin.
>
>
> MH> Vadym Stetsiak escribió:
> >> Hello, Martin!
>
> >> UDP scenario has some drawbacks. UDP broadcasts may not be allowed
> >> between intranets.
> >> OTOH if there must be one app per intranet then broadcasts can do the
> >> job.
>
> >> Also, instead of UDP broadcast you should use multicast.
>
> >> --
> >> With best regards, Vadym Stetsiak.
> >> Blog: http://vadmyst.blogspot.com
>
> >> You wrote on Wed, 03 Oct 2007 17:56:05 +0200:
>
> MH>>> Hi:
>
> MH>>> I need a way to make sure that only one instance of a program is
> MH>>> running on a particular intranet. I thought that some kind of
> MH>>> Broadcast message might do the trick, or maybe a UDP query. I'm
> MH>>> using a WinForms application on .NET 2.0
>
> MH>>> Can anyone help me with this?
>
> MH>>> TIA,
> MH>>> Martin.
>
>
>