473,395 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
3 1089
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
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
You can also open the port programmatically if you want to make it easier on users.
Jul 8 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
92
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
66
by: mensanator | last post by:
Probably just me. I've only been using Access and SQL Server for 12 years, so I'm sure my opinions don't count for anything. I was, nevertheless, looking forward to Sqlite3. And now that gmpy...
3
by: Untitled123 | last post by:
Hey guys!! I am Planning on Creating a Computer vs. User Chess game involving Artificial Intelligence... by just using TURBO C++ This is NOT impossible!! Please understand that my seniors...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.