By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,565 Members | 1,679 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,565 IT Pros & Developers. It's quick & easy.

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

P: n/a
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)?
Jul 1 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You need to open the port for the IIS web server - usally 80. This can be
added to Windows Firewall.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
"Sin Jeong-hun" wrote:
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)?
Jul 1 '08 #2

P: n/a
On Jul 1, 8:00 am, Simon Hart [MVP] <srhart...@yahoo.comwrote:
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".
Jul 1 '08 #3

P: n/a
You can also open the port programmatically if you want to make it easier on users.
Jul 8 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.