## Additional Website Binding Changes

If you want to access the S5 API from a machine on the internal network other than localhost, you need to modify/add the website bindings in IIS &gt; enter the address of the machine that will access the S5 API in the **IP address** field (or leave it blank) and leave the **Host name** field blank.

![Image](/uploads/docs/vazby.png)

A standard installation creates bindings on the required ports with the host value set to localhost. You can then modify or add bindings as needed. For Money Portal or more general functionality, it is preferable to leave the **Host name** field blank/unfilled.

![Image](/uploads/docs/api-6.png)

You also need to check your firewall settings to make sure incoming communication through the port is allowed:

![Image](/uploads/docs/portapi.png)

:::callout {type="danger"}

If you intend to run the API so that it is accessible from outside your internal network, consult your administrator about appropriate security measures. For example, we recommend restricting connectivity to specific IP addresses between two locations (typically the e-shop server and the S5API server).

:::

## Application Startup Mode

After installation, the service is configured by default with the Startup Mode set to **AlwaysRunning** and the **Idle Time-out (minutes): 0**.

![Image](/uploads/docs/api_instal11-768x497.png)

## API Request Length

The default IIS settings are sufficient for most API operations. In some cases, however, you need to send longer requests, such as documents with <u>200 items</u> or requests with a very complex filter. In these cases, the following error message may appear: *"The page was not displayed because the request entity is too large."*.

In these cases, you need to modify the default IIS configuration and increase the values of the properties:
**server -&gt; Configuration Editor -&gt; (Section) system.webServer -&gt; security -&gt; requestFiltering -&gt; maxAllowedContentLength (max 334217728)**

or

**server -&gt; Configuration Editor -&gt; (Section) system.webServer/serverRuntime -&gt; uploadReadAheadSize**

![Image](/uploads/docs/api_contentlenght1.png)![Image](/uploads/docs/api_contentlenght2.png)![Image](/uploads/docs/api_contentlenght3-1.png)
