Just want to know if it is possible with C#.

S

Sin Jeong-hun

I'm writing a very simple web server with C#. Since this is NOT for
actual use, I won't permit connection from other than the computer
it's running on. But, when I run it, Windows Firewall askes me if I
want to unblock it. Of course, I can simply click Keep blocking, but I
just don't want to show this to any users who will use this server for
testing.

The ASP.NET development server seems to be doing the same thing
(allowing localhost only), and desn't show Windows Firewall dialog.

In short, is it possible to somehow let Windows this connection is for
localhost only so it doesn't need to popup the Windows Firewall
dialog, and Keep blocking automatically (without asking)?
 
S

Simon Hart [MVP]

You need to open the port for the IIS web server - usally 80. This can be
added to Windows Firewall.
 
W

Weeble

You need to open the port for the IIS web server - usally 80. This can be
added to Windows Firewall.

I don't think this is what the OP is asking. This unblocks the port on
one computer. The question is if it's possible to write the
application such that wherever it runs it will not trigger a Windows
Firewall popup, and if it *would* trigger one, that it should behave
as if the user had chosen "Keep blocking".
 
H

hdgreetings.com ecards

You can also open the port programmatically if you want to make it easier on users.
 

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