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

# CGNAT and public IP addresses

> Port forwarding only works if your site has its own public IP address. How to tell if your provider shares one between customers (CGNAT), and what to ask them for.

TruRec AI reaches your recorder through your site's public IP address. If your internet provider doesn't give your site one of its own, a port you forward can't be reached, and you'll need to ask your provider for one.

## What a public IP address is

Every internet connection has an address on the internet, such as `203.0.113.7`. That's its public IP address. TruRec AI connects to that address, and your router passes the connection on to your recorder through the port you forwarded.

Your devices also have addresses inside your network, such as `192.168.1.20`. Those are private: they can't be reached from the internet on their own.

## What CGNAT is

Some providers share one public IP address between many customers. This is called CGNAT, short for carrier-grade NAT. Your router gets a private address from the provider instead of a public one. Connections from the internet stop at the provider, and never reach your router, so a port you forward on it can't be reached. Browsing, email and video calls still work normally, which is why most people never notice. It's common on mobile and satellite internet, and some providers use it on other connections too.

## How to tell

**Check your router.** [Sign in to your router](https://docs.trurec.ai/networking/sign-in-to-your-router.md) and find its internet address. It's usually on the status or overview page, labelled something like "Internet IP address", "WAN IP" or "IPv4 address". If it shows two, use the IPv4 one: four numbers with dots. Then compare it with this table:

| The router's internet address starts with | What it means |
| - | - |
| `100.64.` up to `100.127.` | Your provider shares your public IP address (CGNAT). [Ask your provider](#ask-your-provider). |
| `10.` | A private address. Either your provider shares your public IP address, or there's another router in front of yours. |
| `172.16.` up to `172.31.` | A private address, as above. |
| `192.168.` | A private address. Usually there's another router in front of yours. See [Two routers](https://docs.trurec.ai/networking/two-routers.md). |
| `169.254.`, or `0.0.0.0` | Your router isn't properly connected to the internet. Check its cables and lights, or ask your provider. |
| Anything else | Probably a public IP address. Do the check below to be sure. |

**One more check.** On a phone or computer on the site's Wi-Fi, not mobile data, search the web for "what is my IP". Use the result's **IPv4** address: four numbers with dots, such as `203.0.113.7`. Many of these sites show two addresses. If one only shows a long address with colons, that's IPv6: look for its IPv4 option, or try another site. Then compare the IPv4 address with your router's internet address:

* **The same:** port forwarding can work. **Test connection** confirms it once the port is forwarded.
* **Different:** a port forwarded on your router won't be reached.

**If the setup assistant is on for your workspace,** it does this check for you. When you type in your router's internet address, it says whether it's a public one. If it says the address isn't public, because it's shared (CGNAT) or there's another router in front of yours, a port forwarded on your router won't reach your recorder yet.

## Ask your provider

Call your internet provider and ask for a public IP address. You could say:

> "I need my own public IP address on this connection, so a service can reach my security recorder from the internet. Can you take me off CGNAT? If you offer a static IP address, I'd like that."

* **A public IP address** is what you need. Your provider might call it "opting out of CGNAT", a "dedicated IP" or a "public IPv4 address".
* **A static IP address,** if they offer one, is better still. It's a public IP address that never changes, so your camera links keep working. Some providers charge for it.

After the change, restart your router if your provider asks you to. Then check again: your router's internet address should no longer start with any of the numbers in the table above.

If your public IP address isn't static, it can change from time to time, for example after a power cut. When it does, your cameras stop sending video to TruRec AI until their links are updated. [Get help](https://docs.trurec.ai/support/get-help.md#setup-help) if that happens.

## If they say no

Some plans and connection types can't have a public IP address. If your provider says no, [contact us](https://docs.trurec.ai/support/get-help.md#setup-help). Tell us who your provider is, and what they said. We'll help you work out another way to connect.

We're also building the TruRec connector, a small program for a computer at your site that won't need port forwarding. It isn't available yet.


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