# Public Ips&#x20;

<figure><img src="/files/l9x2NWIFlbbkDXjXcLCP" alt=""><figcaption></figcaption></figure>

A SIM card with a public IP address is a SIM card that is assigned a unique, publicly-routable IP address. This allows devices connected to the cellular network via the SIM card to be directly accessible from the internet.

This type of SIM card is typically used in Internet of Things (IoT) applications, such as remote monitoring and control of industrial equipment, mobile video cameras and/or devices using VPN services.

Having a public IP address on the SIM card allows devices to communicate with each other over the internet. This can simplify the architecture and reduce the cost of deploying IoT solutions.

## Assign a public IP

{% @supademo/embed demoId="cmbqo7w30btwgsn1r6fpiiujy" url="<https://app.supademo.com/demo/cmbqo7w30btwgsn1r6fpiiujy>" %}

## Background information

By default, our SIM cards reside behind a firewall that does not allow any incoming traffic from the internet. Some users want to access their hardware remotely via public IP addresses.\
If you click the button 'Assign Fixed IP' in our platform, all incoming and outgoing traffic of that SIM will be routed via a dedicated gateway with a fixed public IP address. The public IP of that gateway is the IP you see on the platform.\
To make this setup more secure, you can assign inbound firewall rules, for the firewall of that gateway. If no additional filtering is required, just select:

* Type: All traffic
* Protocol: All
* Port Range: 0-65535
* Source: 0.0.0.0/0

\
This rule states that all incoming traffic is accepted.\
If you then click 'Assign Public IP' the following happens:

* A dedicated gateway with a public IP is created in our mobile core.
* The firewall rules that you filled in will be assigned to the firewall of that gateway.
* All traffic from the SIM will be routed via this gateway.
* All incoming traffic from the internet on the gateway will be forwarded to the SIM.

{% hint style="danger" %}
**Firewall Rules Applicability Based on SIM Profile**

Firewall rules can be applied only for the below SIM profiles:

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252F4dJBN1F1gLvDgv99q5ZL%252Fimage.png%3Falt%3Dmedia%26token%3D877520cd-8cfb-495b-a1d1-d2b290e7cc8a&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=e25236a2&#x26;sv=2" alt="" data-size="line"> **Black**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252F1HvcgE3AD7TwleIHxjYp%252Fimage.png%3Falt%3Dmedia%26token%3D70258e4d-40d9-4388-81d7-c4303934e757&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=9999d745&#x26;sv=2" alt="" data-size="line"> **Red**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252FBrd1dfKl089ttdGowcYs%252Fimage.png%3Falt%3Dmedia%26token%3Df742026c-5c28-4496-99d2-cb1a56c55045&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=f0e32258&#x26;sv=2" alt="" data-size="line"> **Green**

**These SIMs can also be recognized based on the ICCID format: 89103\*\*\*\*.**

For the following SIM profiles, firewall ruled **cannot be applied**:&#x20;

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252FzCuo8XiheFTvAYOwJdo6%252Fimage.png%3Falt%3Dmedia%26token%3Db8acab7f-4b0e-4628-81b1-4b6f32056a1d&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=f0d8621&#x26;sv=2" alt="" data-size="line"> **Blue**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252F4PgJDHv3uVu7VGhZToYR%252Fimage.png%3Falt%3Dmedia%26token%3Dbb214dab-ee4b-4834-92ef-b9e8533f69a6&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=6b405f46&#x26;sv=2" alt="" data-size="line"> **Yellow**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252Fv0EVzHnNwnhimUqS7PnR%252Fimage.png%3Falt%3Dmedia%26token%3D3de06422-fc5a-45d3-9bb8-a0502a5fe6d3&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=f8b48388&#x26;sv=2" alt="" data-size="line"> **Cyan**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252FqDQZMr5kqKYDp7QrKz3A%252Fimage.png%3Falt%3Dmedia%26token%3D42f837de-085d-4336-a6a5-e28f2d0f6948&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=5fca2532&#x26;sv=2" alt="" data-size="line"> **Purple**

**These SIMs can also be recognized based on the ICCID format: 8944\*\*\*\***
{% endhint %}

\
If the SIM is already in use, please reboot your device (or reset the connection), because the changes take effect when the device starts a new data session. The APN is the same as for normal setups. Please check the overview below.

<img src="/files/k9g69JzMoujysQ8z98qx" alt="" class="gitbook-drawing">

## Considerations

{% hint style="danger" %}
**APN settings based on ICCID format**&#x20;

Depending on your SIM card type, adjusting the APN settings on your device may be necessary after assigning a Public IP.

No APN change is required for the  below SIM profiles:&#x20;

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252F4dJBN1F1gLvDgv99q5ZL%252Fimage.png%3Falt%3Dmedia%26token%3D877520cd-8cfb-495b-a1d1-d2b290e7cc8a&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=e25236a2&#x26;sv=2" alt="" data-size="line"> **Black**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252F1HvcgE3AD7TwleIHxjYp%252Fimage.png%3Falt%3Dmedia%26token%3D70258e4d-40d9-4388-81d7-c4303934e757&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=9999d745&#x26;sv=2" alt="" data-size="line"> **Red**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252FBrd1dfKl089ttdGowcYs%252Fimage.png%3Falt%3Dmedia%26token%3Df742026c-5c28-4496-99d2-cb1a56c55045&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=f0e32258&#x26;sv=2" alt="" data-size="line"> **Green**

**These SIMs can also be recognized based on the ICCID format: 89103\*\*\*\*.**

The APN needs to be changed to ***fixedip.m2m*** for the following Profiles:&#x20;

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252FzCuo8XiheFTvAYOwJdo6%252Fimage.png%3Falt%3Dmedia%26token%3Db8acab7f-4b0e-4628-81b1-4b6f32056a1d&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=f0d8621&#x26;sv=2" alt="" data-size="line"> **Blue**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252F4PgJDHv3uVu7VGhZToYR%252Fimage.png%3Falt%3Dmedia%26token%3Dbb214dab-ee4b-4834-92ef-b9e8533f69a6&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=6b405f46&#x26;sv=2" alt="" data-size="line"> **Yellow**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252Fv0EVzHnNwnhimUqS7PnR%252Fimage.png%3Falt%3Dmedia%26token%3D3de06422-fc5a-45d3-9bb8-a0502a5fe6d3&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=f8b48388&#x26;sv=2" alt="" data-size="line"> **Cyan**

&#x20;<img src="https://support.simbase.com/~gitbook/image?url=https%3A%2F%2F2653492456-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FYV3zfJTXLR73Umqnex88%252Fuploads%252FqDQZMr5kqKYDp7QrKz3A%252Fimage.png%3Falt%3Dmedia%26token%3D42f837de-085d-4336-a6a5-e28f2d0f6948&#x26;width=40&#x26;dpr=3&#x26;quality=100&#x26;sign=5fca2532&#x26;sv=2" alt="" data-size="line"> **Purple**

**These SIMs can also be recognized based on the ICCID format: 8944\*\*\*\***
{% endhint %}

Things to note:

* Make sure to restart the data connection on your device after deploying the public IP
* It can take up to 2 minutes for the gateway to deploy. Wait for the gateway to fully deploy. Do not make any changes or re-deploys.
* You can make changes to the firewall by clicking the 'Manage Fixed IP' button, but only after the IP is fully deployed.
* Please note that your device also has a built-in firewall that is beyond our control. It is best to disable it or allow all source IPs on the appropriate ports. Please consult your hardware manufacturer in case of problems.
* Just like outbound traffic is billable, inbound traffic is also billable, so please note that if anybody on the internet accesses your device remotely, the inbound data usage is billed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.simbase.com/platform/public-ips.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
