|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Windows Firewall and UDP PacketsI 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 "dgcooper" <dgcoo***@discussions.microsoft.com> wrote in message Windows firewall only blocks incoming packets, not outgoing.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? 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. > > > |
|||||||||||||||||||||||