Windows Firewall and UDP Packets

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
dgcooper said:
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.
 
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
 
Back
Top