---
title: "Inference service connection types"
sidebar_label: "Connection types"
sidebar_position: 4
description: "Available inference service connection types"
---

import Formbricks from '@theme/MDXComponents/Formbricks';

# Inference service connection types

When [creating an inference service](/foundation-models-catalog/create/create-inference-service.mdx), you can choose one of the following connection types: [public access](#public-connection) or [private access](#private-connection).

## Public access \{#public-connection}

When public access is selected, a free domain name is automatically generated. You can connect to the inference service from the internet via a public endpoint.

## Private access \{#private-connection}

When private access is selected, a new [private subnet](/cloud-servers/cloud-networks/private-networks-and-subnets.mdx) is automatically created, where the inference service is hosted. You can connect to the inference service via a private endpoint only from devices located in the same private subnet. For example, you can [configure a private connection to the inference service via a cloud server](/foundation-models-catalog/manage/connection-with-cloud-server-in-private-subnet.mdx).

In the private subnet of the inference service, three IP addresses are reserved for service needs and cannot be assigned to other devices. Usually, these are the first IP addresses of the subnet range, for example: `172.16.0.1`, `172.16.0.2`, `172.16.0.3`.

You cannot connect an inference service with private access to devices in other networks and pools via a [cloud](/cloud-servers/cloud-networks/cloud-routers.mdx) or [global router](/global-router).

<Formbricks />
