Skip to content

Instantly share code, notes, and snippets.

@maphew
Last active February 14, 2023 18:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maphew/3af1acc1f659e98665ec19e53831bc03 to your computer and use it in GitHub Desktop.
Save maphew/3af1acc1f659e98665ec19e53831bc03 to your computer and use it in GitHub Desktop.
Allow ArcGIS License Manager through the firewall
@echo off
:: Run this on the LM server machine
setlocal
set _p=C:\ArcGIS\License_Manager\LicenseManager\bin
:inbound
netsh advfirewall firewall add rule name="ArcGIS License Manager - arcgis" dir=in action=allow program="%_p%\arcgis.exe" enable=yes
netsh advfirewall firewall add rule name="ArcGIS License Manager - lmgrd" dir=in action=allow program="%_p%\lmgrd.exe" enable=yes
netsh advfirewall firewall add rule name="ArcGIS License Manager - LSA" dir=in action=allow program="%_p%\LSA.exe" enable=yes
:outbound
netsh advfirewall firewall add rule name="ArcGIS License Manager - arcgis" dir=out action=allow program="%_p%\arcgis.exe" enable=yes
netsh advfirewall firewall add rule name="ArcGIS License Manager - lmgrd" dir=out action=allow program="%_p%\lmgrd.exe" enable=yes
netsh advfirewall firewall add rule name="ArcGIS License Manager - LSA" dir=out action=allow program="%_p%\LSA.exe" enable=yes
goto :eof
:: --- Sources ---
:: https://esriaustraliatechblog.wordpress.com/2022/11/30/why-cant-i-connect-arcgis-pro-to-arcgis-license-manager/
:: https://desktop.arcgis.com/en/license-manager/latest/configure-the-arcgis-license-manager-to-work-through-a-firewall.htm
:: ChatGPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment