> For the complete documentation index, see [llms.txt](https://docs.dbnetsoft.com/dbnetsoft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnetsoft.com/dbnetsoft/idcampro/configuration/cameras/axis/motion-detection.md).

# Motion Detection

Axis cameras can do motion detection on the camera itself and inform IDCamPro about this.

For this to work, Axis camera must be configured as follows

### Setup Motion Detection

* *AXIS Video Motion Detection* application must be enabled and running. Make sure of this by going to *Settings* - *Apps* - *AXIS Video Motion Detection*
* Setup the app according to your needs in terms of sensitivity and regions of interest. The manual for your camera will guide you on this.

### Setup Rules to alert IDCamPro

Axis camera needs to send a trigger to IDcamPro via network. This is done by creating rules on the camera.

* Go to *Settings* - *System* - *Events*
* Create a new rule that is triggered by *Motion Detection*
* Action must be created to connect to IDCamPro on the IP address of IDCamPro laptop and port 8883
* The text to send to IDCamPro must be "*motion*" without the quotes

{% hint style="warning" %}
Older versions of IDCamPro used port 8889, which is also the exchange port of Photofinish - both programs could not run on the same computer. IDCamPro now uses 8883 and moves configs saved with 8889 to 8883 when they are loaded. Change the rule of cameras set up for an older version to port 8883.
{% endhint %}

{% hint style="info" %}
IDCamPro also has its own built-in motion detection that works without any camera-side configuration - see [Motion Detection](https://docs.dbnetsoft.com/dbnetsoft/idcampro/configuration/cameras/motion-detection.md). The two are independent; use whichever suits the camera, usually not both at once.
{% endhint %}
