windows-firewall

Run multiple sites from one IP in IIS

倖福魔咒の 提交于 2019-11-30 11:07:56
问题 I have a box with Windows Server 2008 and IIS 7, and I'm using an ASP.NET app. I am trying to run multiple sites from one IP, but I can't access the sites from the outside. I can only access the Default website from outside but when I want to access the second one it does not work. The second one should run on the http://ip:81 and the default one is on 80. They both run fine locally on the box and I have added a rule on the firewall to allow all inbound. 回答1: host headers are your friend This

Windows firewall rule for XP

江枫思渺然 提交于 2019-11-30 02:06:36
How to programmatically add an application or port to Windows Firewall on Windows XP? Try this code extracted from our open source SQlite3UI.pas unit: function GetXPFirewall(var fwMgr, profile: OleVariant): boolean; begin Result := (Win32Platform=VER_PLATFORM_WIN32_NT) and (Win32MajorVersion>5) or ((Win32MajorVersion=5) and (Win32MinorVersion>0)); if result then // need Windows XP at least try fwMgr := CreateOleObject('HNetCfg.FwMgr'); profile := fwMgr.LocalPolicy.CurrentProfile; except on E: Exception do result := false; end; end; const NET_FW_PROFILE_DOMAIN = 0; NET_FW_PROFILE_STANDARD = 1;

Run multiple sites from one IP in IIS

拜拜、爱过 提交于 2019-11-30 00:48:01
I have a box with Windows Server 2008 and IIS 7, and I'm using an ASP.NET app. I am trying to run multiple sites from one IP, but I can't access the sites from the outside. I can only access the Default website from outside but when I want to access the second one it does not work. The second one should run on the http://ip:81 and the default one is on 80. They both run fine locally on the box and I have added a rule on the firewall to allow all inbound. host headers are your friend This link might help you. http://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx You basically are

Can't connect to SQL 2012 remotely by IP and named instance

≡放荡痞女 提交于 2019-11-29 15:33:09
问题 First off, I already know that Windows Firewall is blocking my connection -- I just don't know what to do about it. When I turn WF all the way off, my remote connection works. I already have a Rule to allow incoming requests at port 1433, and it seems that's the right port, but I'm unsure. Now for more details. I had SQL Server 2008 R2 on my remote dedicated server and had no problem connecting remotely via SSMS. But then I installed SQL Server 2012. It works fine, but I was forced to create

All localhost pages via WAMP blocked?

大憨熊 提交于 2019-11-28 23:28:56
I've been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost. After adding a rule to open up port 80 via Windows Firewall, which apache uses, I notice that this does NOT fix my problem and instead gives me a 403 forbidden for ALL my pages via localhost. Removing the rule I just made (which caused this to begin with) does not fix it. Disabling Windows Firewall does not fix it. Restarting my computer does not fix it. Any ideas? EDIT2: I AM able to go to localhost/phpmyadmin for whatever that's worth. EDIT3: The contents of my httpd.conf:

Windows firewall rule for XP

柔情痞子 提交于 2019-11-28 23:00:05
问题 How to programmatically add an application or port to Windows Firewall on Windows XP? 回答1: Try this code extracted from our open source SQlite3UI.pas unit: function GetXPFirewall(var fwMgr, profile: OleVariant): boolean; begin Result := (Win32Platform=VER_PLATFORM_WIN32_NT) and (Win32MajorVersion>5) or ((Win32MajorVersion=5) and (Win32MinorVersion>0)); if result then // need Windows XP at least try fwMgr := CreateOleObject('HNetCfg.FwMgr'); profile := fwMgr.LocalPolicy.CurrentProfile; except

Detect if windows firewall is blocking my program

僤鯓⒐⒋嵵緔 提交于 2019-11-28 06:35:16
I have an application that communicates with a NetApp device through their api. With the windows firewall on, the api commands will fail. With the firewall off, the api commands work. I don't receive any message like "Windows Firewall is blocking this program". Looking through the documentation I believe that I found the TCP ports that need to be open for the api commands to work. How can I programatically detect if the ports are blocked so I can display a message to the user on the potential problem? The firewall manager exposes itself via COM and implements an IsPortAllowed , here is an

Adding an application firewall rule to both private and public networks via win7 FirewallAPI

我是研究僧i 提交于 2019-11-27 16:50:48
问题 A little background: Basicaly I'd like to add a program firewall access rule to both private and public networks. I used to use this- "netsh firewall add allowedprogram program= "Path.." name=AppName ENABLE scope=ALL profile=CURRENT" But now I'd like to automate the proccess a little using a COM object. Found this shiny piece of code - http://web.archive.org/web/20070707110141/http://www.dot.net.nz/Default.aspx?tabid=42&mid=404&ctl=Details&ItemID=8 And after implementing the class I've been

All localhost pages via WAMP blocked?

南笙酒味 提交于 2019-11-27 14:48:25
问题 I've been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost. After adding a rule to open up port 80 via Windows Firewall, which apache uses, I notice that this does NOT fix my problem and instead gives me a 403 forbidden for ALL my pages via localhost. Removing the rule I just made (which caused this to begin with) does not fix it. Disabling Windows Firewall does not fix it. Restarting my computer does not fix it. Any ideas? EDIT2: I

Java 7 prevents FTP transfers on Windows Vista and 7 if firewall is on. Any ideas?

戏子无情 提交于 2019-11-27 10:16:00
Java 7 prevents FTP transfers on Windows Vista and 7. In FTP, before a file is transferred a PORT or a PASV command must be sent. As soon as one of the commands is sent the Windows Firewall closes the socket that sent it. This only happens if the firewall is on and an exception for java.exe is absent. I suspect this problem is related to Java 7 using the new Vista IP stack. Does anyone have any ideas how to fix or work around this problem? We're distributing a Java FTP library so we obviously can't add exceptions ourselves. Exception: java.net.SocketException: Permission denied: recv failed