Questions tagged [windows-firewall]

Questions referring to the firewall that comes built-in with windows. Use this tag only when referring to the firewall that comes with Windows; Other firewalls that run on Windows should contain the two tags [windows] [firewall] instead.

Questions referring to the firewall that comes built-in with windows. Use this tag only when referring to the firewall that comes with Windows; Other firewalls that run on Windows should contain the two tags instead.

495 questions
4
votes
1 answer

Block .EXE in Windows Firewall with context menu

I got the following bit of code for a .REG file that adds "Add to Firewall" to the context menu on right clicking on a .EXE file. It simply creates an Outbound Rule in the windows firewall for that specific file you had selected instead of doing it…
zyl1647
  • 153
  • 1
  • 3
  • 6
4
votes
2 answers

Howto open firewall ports during installation?

How can I open Windows Firewall ports during installation with install4j? I found this solution for c#, but I'm unable to port it to install4j custom code: http://www.codeproject.com/Articles/14906/Open-Windows-Firewall-During-Installation Perhaps…
Schlocke
  • 61
  • 4
4
votes
1 answer

Creation of Firewall rule during installation: netsh or WindowsFirewall API?

I'm building an installer for our program here, and I would like to add a firewall rule upon installation. I've researched a bit and there are 2 approaches I've found: Running a netsh command Programmaticaly with the firewall API Regarding netsh-…
Oyiwai
  • 449
  • 1
  • 3
  • 20
3
votes
1 answer

How to whitelist GitHub Action IPs in windows server firewall

I have windows server 2012. I did setup gitlab CI/CD to automatically build and upload build to server. I do copy files with appleboy/scp-action@master GitHub Action. It works! I do have username/key authentication and would like to add windows…
Martin Kršek
  • 79
  • 1
  • 9
3
votes
2 answers

Allow ssh protocol through win 10 firewall

I have a workstation with Win 10 on which I installed OpenSSH server. If I try to connect to it (from another machine with Win 10 using ssh in a command prompt) I see it gives the following error: ssh: connect to host Test3 port 22: Connection…
Claudiu Cruceanu
  • 135
  • 1
  • 1
  • 10
3
votes
0 answers

How can I ensure that I bind() to and listen() on a "private", rather than "public" network?

In my C program foo.exe, I create a TCP socket using winsock2, bind() it to a specific port and listen() for incoming connections. Windows 10 throws up its firewall dialog and asks me if I want to allow foo.exe to receive connections (a) over…
jez
  • 14,867
  • 5
  • 37
  • 64
3
votes
4 answers

heroku run bash gives error: ! ! ETIMEDOUT: connect ETIMEDOUT 50.19.103.36:5000

I'm trying to use heroku run bash on windows 10. I have tried allowing the port 5000 through the firewall and restarting Command Prompt as administrator. Is there anything else I am missing to get a connection?
Jesse Reza Khorasanee
  • 3,140
  • 4
  • 36
  • 53
3
votes
1 answer

How to make Python automatically allow port through Windows firewall

I have an FTP server which I would like to be able to send to my personal Windows 10 computers stationed around my area (different IPs) to access files, and in order to access them, I need to allow the ports through the firewalls. Instead of doing…
Jacob
  • 409
  • 6
  • 22
3
votes
2 answers

Virtualbox fails to connect due to Windows Firewall, Vagrant cannot start

I have an Ubuntu 14.04 Vagrant box that I am trying to use on a Windows 10 host. The box is not the issue as it works fine on other systems. My Virtualbox version is currently 5.1.28, I tried the latest version which is when the problem started so I…
NeyLive
  • 424
  • 5
  • 23
3
votes
1 answer

What is the difference between the following GPO settings?

While doing some GPO work today and setting up some firewall inbound rules that I want distributed through GP I became confused between these two GPs. They function very similarly, yet I couldn't find any differences. Computer Configuration >…
Sean Mitchell
  • 447
  • 2
  • 21
3
votes
2 answers

Windows Firewall issue when connecting from expo

I am having windows firewall issues connecting to the react-native packager from expo on both the VS android emulator and an Android hardware device. The error I am getting in Expo is "Uncaught Error: Packager is not running at…
AQuirky
  • 4,691
  • 2
  • 32
  • 51
3
votes
1 answer

Setting Port Firewall Exceptions in Windows 10 Using C#

I'm trying to set a firewall exception for Windows 10. After doing numerous searches, I put together this code: private const string PROGID_OPEN_PORT = "HNetCfg.FWOpenPort"; private const string CLSID_FIREWALL_MANAGER =…
Steve Graber
  • 297
  • 1
  • 4
  • 15
3
votes
1 answer

Julia connection to server behind proxy

I have a problem with the connection of Julia and Atom to the servers. My location is currently in a company network which works with proxies and firewall. Does anyone have any idea what settings I must change in order to connect with Julia and Atom…
Richard
  • 31
  • 2
3
votes
1 answer

read firewall settings to see which profiles are allowed on applications with c# on windows

I am trying to programmatically read which profiles are allowed for applications are allowed through the firewall. I have been using the following c# code: string inputname = "TestFirewallUpdateSettings"; private void button1_Click(object…
Victor.Wiedemann
  • 178
  • 1
  • 12
3
votes
1 answer

Creating a rule with the Windows Firewall API that applies to all applications run by a service

I'm trying set up a firewall rule for a Windows service to deny all inbound and outbound TCP and UDP connections except a whitelist of hosts and ports using the Windows Service Hardening API, following the VBScript example here. Now, this service…