Home All Groups Group Topic Archive Search About

Windows Firewall and UDP Packets

Author
28 Aug 2006 1:29 PM
dgcooper
I would like the user to be able to choose "Unblock" on the security alert
dialog when my application attempts to send a UDP packet for the first time.
However, the securlty alert dialog does not appear. I have to tell the user
(when running the app for the first time) to manually add my app to the
exceptions list in the firewall. Why isn't windows prompting the user with
the security alert dialog? I have the "Display notification..." check box
checked, and it still doesn't appear. Is there something I should do before
sending the packet?

Doesn't the security alert work with UDP packets?

Thanks

Author
28 Aug 2006 5:19 PM
Mike Lowery
"dgcooper" <dgcoo***@discussions.microsoft.com> wrote in message
news:20E58EFA-64C1-4080-B03A-88273A299B19@microsoft.com...
>I would like the user to be able to choose "Unblock" on the security alert
> dialog when my application attempts to send a UDP packet for the first time.
> However, the securlty alert dialog does not appear. I have to tell the user
> (when running the app for the first time) to manually add my app to the
> exceptions list in the firewall. Why isn't windows prompting the user with
> the security alert dialog? I have the "Display notification..." check box
> checked, and it still doesn't appear. Is there something I should do before
> sending the packet?
>
> Doesn't the security alert work with UDP packets?

Windows firewall only blocks incoming packets, not outgoing.
Author
28 Aug 2006 5:36 PM
dgcooper
I know. I wasn't clear on that. 

I found my fix.  I need to call the Socket.Bind() method.  This triggers the
security alert when the local machine received the incoming packet from the
remote device.

Now it works.

Thanks

Show quote
"Mike Lowery" wrote:

>
> "dgcooper" <dgcoo***@discussions.microsoft.com> wrote in message
> news:20E58EFA-64C1-4080-B03A-88273A299B19@microsoft.com...
> >I would like the user to be able to choose "Unblock" on the security alert
> > dialog when my application attempts to send a UDP packet for the first time.
> > However, the securlty alert dialog does not appear. I have to tell the user
> > (when running the app for the first time) to manually add my app to the
> > exceptions list in the firewall. Why isn't windows prompting the user with
> > the security alert dialog? I have the "Display notification..." check box
> > checked, and it still doesn't appear. Is there something I should do before
> > sending the packet?
> >
> > Doesn't the security alert work with UDP packets?
>
> Windows firewall only blocks incoming packets, not outgoing.
>
>
>

AddThis Social Bookmark Button