---
title: "Optional: configuring the firewall"
description: "If necessary, allow traffic to the specified ports through the firewall. If the service will only be used on an internal network (domain or private), apply the following firewall rules. `Firewall setting (Powershell script)` `New-NetFirewallRule -DisplayName 'ODDC Server 5.1 API…"
url: "https://activerecord.com/docs/installation/optional-configuring-the-firewall/"
updated: "2026-09-09"
category: "Installation - Oculens DDC Server (ODDC Server) 5.1"
---

# Optional: configuring the firewall

If necessary, allow traffic to the specified ports through the firewall. If the service will only be used on an internal network (domain or private), apply the following firewall rules.

 `Firewall setting (Powershell script)`

`New-NetFirewallRule -DisplayName 'ODDC Server 5.1 API WebApp - Internal' -Direction Inbound -LocalPort yourportnumber1here, yourportnumber2here -Protocol TCP -Action Allow -Profile Domain,Private`
