Windows Firewall and UDP Packets

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
 
M

Mike Lowery

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top