In this post, we will be discussing the topic of how to Enable or Disable Services and how to Start, Stop, Refresh and Restart Services in Windows 11 or Windows 10 using PowerShell, Command Prompt, ...
You could create an IPSEC filter to block inbound access to the port then only enable it when you want to kill access.