> ## Documentation Index
> Fetch the complete documentation index at: https://docs.engini.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Engini to systems on your own servers

Use this page when your SAP S/4HANA, SAP Business One, IBM DB2, Priority, another database or your files are on your own server or in a private network, and Engini needs to reach it.

There are two ways to do it. Choose one:

## Choose an option

| | Option A - Allow Engini's IP addresses | Option B - Use the Engini On-Prem Agent |
| - | - | - |
| What your IT team does | Adds a firewall rule that allows Engini's three IP addresses | Installs a small program on a machine inside your network |
| Ports opened to the internet | One port, only for Engini's IP addresses | None |
| What you install | Nothing | The Engini On-Prem Agent |
| Works for | SAP S/4HANA, SAP Business One, IBM DB2, Priority ERP, MS SQL, MySQL, PostgreSQL, Oracle | SAP S/4HANA, SAP Business One, IBM DB2, Priority ERP, MS SQL, MySQL, PostgreSQL, Oracle, On Prem Files |

* Choose Option A when your IT team prefers a firewall rule and no extra machine. The port depends on the system you connect - web-based systems, such as Priority, usually use HTTPS on port 443.
* Choose Option B for databases, and whenever your security policy does not allow incoming connections.
* For files on your own servers, use Option B with [On Prem Files](https://docs.engini.ai/help/apps/on-prem-files.md). It works only through the agent.

## Option A - Allow Engini's IP addresses

Engini connects to your server from these IP addresses:

* 54.220.73.159
* 52.30.192.39
* 52.213.118.14

Allow these three addresses on the port your server uses:

| App | Port |
| - | - |
| SAP S/4HANA | Depends on your server - web-based systems usually use HTTPS on port 443 |
| SAP Business One | 50000 (default - use your server's port if it was changed) |
| IBM DB2 | 50000 (default - use your server's port if it was changed) |
| Priority ERP | Depends on your server - web-based systems usually use HTTPS on port 443 |
| MS SQL | 1433 (default - use your server's port if it was changed) |
| MySQL | 3306 (default - use your server's port if it was changed) |
| PostgreSQL | 5432 (default - use your server's port if it was changed) |
| Oracle | 1521 (default - use your server's port if it was changed) |

Keep it tight:

* Allow only these three addresses and only that one port. Never allow "any" address or a range of ports.
* Use a database user that has only the permissions your workflows need.
* Turn on encrypted (TLS) connections where your server supports them.

## Option B - Use the Engini On-Prem Agent

The Engini On-Prem Agent (the agent) is a small program that runs on a machine inside your network. It only makes outgoing connections, so you do not open any incoming port.

The machine that runs the agent needs outgoing HTTPS (port 443) access to `opa.engini.io`, and it must be able to reach your server.

1. Install the agent. See [On Prem Agent](https://docs.engini.ai/help/connections/on-prem-agent.md).
2. When you create the connection in Engini, choose *OPA* in the *Communication Channel* field, and select your agent.

The agent is available for:

* SAP S/4HANA
* SAP Business One
* IBM DB2
* Priority ERP
* MS SQL
* MySQL
* PostgreSQL
* Oracle
* [On Prem Files](https://docs.engini.ai/help/apps/on-prem-files.md) - files and folders on your own servers

If something does not work after you set up the agent, see [Troubleshooting the On Prem Agent](https://docs.engini.ai/help/connections/on-prem-agent-troubleshooting.md).

## What to send your IT team

**Option A - firewall rule**

* The address and port of your server.
* Engini's three IP addresses: 54.220.73.159, 52.30.192.39 and 52.213.118.14.
* A request to allow them on the relevant ports.
* A database user with only the permissions your workflows need.

**Option B - On-Prem Agent**

* A Windows machine that can reach your server.
* Outgoing HTTPS access from that machine to `opa.engini.io` on port 443.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.