windows-firewall

Firewall rules to allow remote connection to SQL Server in a different domain

喜欢而已 提交于 2019-12-24 17:25:45
问题 I recently installed SQL Server Express 2014 on a series of machines running Windows Server 2012. Seven machines in total. All but 1 of them live in the same local domain company.local . A single rogue machine lives in a different public domain public.company.org . The installation process on this machine on a separate domain was carried out by someone who was not paying much attention to the process and pretty much selected all defaults (a.k.a. a click-click-click installation.) As such,

Check if port is blocked by windows firewall

旧城冷巷雨未停 提交于 2019-12-19 04:15:14
问题 How do i check if specific port is blocked by Windows firewall , both in incoming and outgoing connections. I've seen code samples such as this one: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Dim host As String = "localhost" Dim port As Integer = 6900 Dim addr As IPAddress = CType(Dns.GetHostAddresses(host)(0), IPAddress) Try Dim tcpList As New TcpListener(addr, port) tcpList.Start() Catch sx As SocketException ' Catch exception here if port is blocked End Try

Windows Firewall, Tinywall and GIT

别说谁变了你拦得住时间么 提交于 2019-12-18 17:30:57
问题 Just finally updated to Win7 from XP. I am using Windows Firewall with added Tinywall (gives more control) But when I use Git Bash, the firewall blocks all commands. If I disable the firewall then everything works OK I cannot figure the proper exceptions to add to TinyWall whitelist. I added the shell window as well as the git.exe for application exceptions but still no go. These exceptions program paths I added: C:\Program Files (x86)\Git\git-cheetah\..\bin\sh.exe C:\Program Files (x86)\Git

How to Add Outbound Windows Firewall Exception?

爷,独闯天下 提交于 2019-12-17 22:38:00
问题 I need to open up the Windows Firewall for outbound connections for an application I'm writing. The best answers I've been able to locate are here: http://www.shafqatahmed.com/2008/01/controlling-win.html http://www.vincenzo.net/isxkb/index.php?title=Adding_a_rule_to_the_Windows_firewall The problem is that method only creates an inbound rule, and not an outbound rule. (Both the C# and InnoSetup script use the same method.) This is entirely useless for me. The default behaviour for the

Detect if windows firewall is blocking my program

旧时模样 提交于 2019-12-17 18:07:38
问题 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

Can't connect to MySQL server on 'localhost' (10061)

独自空忆成欢 提交于 2019-12-17 03:31:14
问题 I recently installed MySQL 5 on Windows 2003 and tried configuring an instance. Everything worked fine until I got to "Applying Security settings", at which point it gave me the above error ( Can't connect to MySQL server on 'localhost' (10061) ). I do have a port 3306 exception in my firewall for 'MySQL Server'. 回答1: You'll probably have to grant 'localhost' privileges to on the table to the user. See the 'GRANT' syntax documentation. Here's an example (from some C source). "GRANT ALL

Firewall Not asking Permission to open the port

邮差的信 提交于 2019-12-13 08:31:22
问题 I am writing the following java program for opening a port in Windows. As of my knowledge whenever we are opening a port, Firewall should ask for the permission to allow the access. But here without intimation it is opening. What is the reason behind it. MyCode import java.net.*; import java.io.*; class Server { public static void main(String[] args) throws Exception { if(args.length!=1) { System.out.println("Enter the Port Number"); return; } int portNumber = Integer.parseInt(args[0]);

Coinitialize has not been called error message

血红的双手。 提交于 2019-12-12 11:48:58
问题 I am in the process of coding a console application that will create a firewall exception for my main app called Client.exe which uploads a few documents to our servers via FTP. I borrowed RRUZ code from Delphi 7 Windows Vista/7 Firewall Exception Network Locations my code looks like this: program ChangeFW; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, ComObj; var ExecName: string; procedure AddExceptionToFirewall(Const Caption, Executable: String); const NET_FW_PROFILE2_DOMAIN = 1; NET

Create firewall rule to open port per application programmatically in c#

拥有回忆 提交于 2019-12-12 07:36:48
问题 I need to open specific port for my application. I have tried using INetFwAuthorizedApplication rule per application for all ports. fwMgr.LocalPolicy.CurrentProfile.AuthorizedApplications.Add(app) Alternatively open one port for all appllications using INetFwOpenPort . firewallManager.LocalPolicy.CurrentProfile.GloballyOpenPorts.Add(port) Is there any way to programmatically open only single port per application programmatically? I can do it manually through firewall settings. 回答1: There's a

How to check window's firewall is enabled or not using commands

孤者浪人 提交于 2019-12-12 07:30:10
问题 I am adding a windows firewall rule using netsh advfirewall firewall command in a setup program. My code is giving an error message if the system has windows firewall disabled. So I need to check the window's firewall status before executing the command netsh advfirewall firewall add . ie, if firewall is disabled, no need to add the rule. I am checking if the firewall is enabled or not by using the window registry value " EnableFirewall ". HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services