Security
APN vs VPN for IoT: Differences, security, and when to use each
Compare public APNs, private APNs, and VPNs for IoT security. See how they work together and which setup fits your cellular deployment.

An APN (access point name) is the cellular gateway every IoT device uses to reach a network. An IoT VPN is an optional encrypted tunnel that protects the data moving across that connection.
Teams often use the terms interchangeably, but APNs and VPNs are not the same thing. How they work together matters most for IoT deployments that manage hundreds to thousands of devices at once. This guide compares public APNs, private APNs, and VPNs, and shows how to choose the right setup for your use case.
Key takeaways
- Every cellular IoT device uses an APN to connect, but a VPN is optional.
- A public APN handles routine tasks, while a private APN separates device traffic from the wider network.
- A VPN adds cost and complexity, so it fits best in regulated industries or deployments that handle sensitive data.
- Teams can run a VPN at the device level or at the gateway with a custom private APN.
- A custom private APN can add a static IP so servers can reach and allowlist known devices.
- Hologram includes a plug-and-play private APN with device separation as standard.
Every connected device adds a new endpoint to manage, and IoT deployments have security considerations that grow with fleet size. According to the Ericsson Mobility Report, cellular IoT connections reached around 4.5 billion at the end of 2025. At that scale, every APN and VPN choice carries across thousands of devices.
According to Forescout's Riskiest Connected Devices of 2025 report, average device risk rose 15% year over year across the enterprise networks it monitors, and routers made up more than 50% of devices with the most dangerous vulnerabilities. The data connected devices send is often very valuable. Consequences can range from a manufacturing company's productivity grinding to a halt to patients' personal health information falling into the wrong hands.
In short, when building an IoT solution, security should be top of mind. Finding the best APN and VPN solution for your specific use case plays a key role. For a broader checklist, review these enterprise-grade IoT security features.
What is an APN?
Think of an Access Point Name, or APN, as a doorway that allows a connection to the internet through a cellular network. It can also help separate traffic from other networks.
The APN defines the set of connectivity rules a device has as well as certain security measures. All cellular connected devices use an APN of some kind.
This doorway between your device and the wider network can be either public or private. Each type has particular considerations to keep in mind.
Public APN
Mobile network operators (MNOs) traditionally offer public APNs with a set of configurations for most routine tasks. Devices share the same APN, and it typically doesn't need additional setup.
It can be easy to think of public APNs in terms of consumer cellular devices. Most phones on a network reach the internet through the same APN, which the MNO predefines.
Private APN
A private APN separates device traffic from the wider network. It can also give teams the ability to tailor this doorway with additional customizations.
Public vs private APN: which does your IoT deployment need?
When a public APN is enough
A public APN suits routine tasks that don't need traffic separation or custom connectivity rules. Think back to our MNO example. All mobile phones on the network likely use the same public APN, and that may work for consumer devices.
When to choose a private APN
IoT use cases can often have different needs. Teams typically seek a private APN option to protect their devices from the wider network.
Teams can also customize private APNs to tailor connectivity rules to specific use case needs. A custom private APN could give you the ability to mask the connectivity provider or implement a static IP address. In some use cases, teams need to access a specific point of presence, and they would implement a custom private APN for it.
A shared private APN backed by a software-defined network (SDN) gives teams private APN separation without building new network infrastructure. Setting up a custom private APN typically costs more.
What is a VPN?
A virtual private network (VPN) creates an encrypted tunnel between your devices and your servers or data center.
Today, it's common to hear about private VPNs for personal or work-related use. Many companies offer a type of encrypted connection that protects users' data and browsing history from the wider internet. For IoT devices, the idea is similar: data travels through this encrypted tunnel and stays separate from the wider network.
Teams often build VPNs on Internet Protocol Security (IPsec). The IETF's IPsec architecture (RFC 4301) defines this set of protocols. They give data authentication, integrity, encryption, decryption, and confidentiality between two points on a network.
Recommended reading: What is IPSec? Internet Protocol Security and cellular IoT
Things to consider when choosing a VPN for IoT devices
Whether you need a VPN really depends on the specific IoT use case. VPNs can be complex to implement and increase the total cost of ownership for deployments. In some instances, VPNs can also limit flexibility.
But VPNs offer a few key benefits for use cases that are in heavily regulated industries or handle sensitive information, like patient data.
Secure channel
A VPN creates an encrypted tunnel between your devices and the larger network. It can also help obscure each device's IP address, which makes devices harder to track.
Data security
With a VPN, devices send data through a private and encrypted tunnel. Only the device and the application endpoint have the keys to decrypt it. This protects that data from listeners outside of the VPN tunnel to make sure no one intercepts or manipulates it.
Confidentiality and privacy
Because devices send data only through this specific channel, bad actors are less likely to intercept any information devices send. It gives similar benefits to using an internal private network, despite using the public internet. For medical devices, this can be crucial for maintaining privacy rules and regulations.
APN vs VPN for IoT at a glance
| Factor | Public APN | Private APN | VPN |
|---|---|---|---|
| What it does | Connects devices to the internet through a cellular network | Connects devices and separates their traffic from the wider network | Creates an encrypted tunnel between devices and your servers or data center |
| Network layer | Cellular network access point | Cellular network access point | IP layer, through IPsec |
| Encryption | Pair with a VPN for an encrypted tunnel | Pair with a VPN for an encrypted tunnel | Encrypts data between the device and the application endpoint |
| Traffic isolation | Devices share the same APN | Separates device traffic from the wider network | Data travels in a tunnel separate from the wider network |
| Static IP option | Available when the APN assigns a static public IP | Custom private APNs can implement a static IP | Obscures each device's IP address |
| Setup effort | Typically no additional setup | Shared SDN-backed options need no new network infrastructure | Can be complex to implement |
| Typical cost | Lower | Lower for shared, higher for custom | Higher total cost of ownership |
| Best for | Routine tasks and consumer devices | IoT fleets that need separation, a static IP, or a specific point of presence | Regulated industries and sensitive data, like patient records |
How a private APN and VPN work together in IoT
To continue the doorways and tunnels analogy, every cellular connected IoT device needs an address (or APN). That address directs it to connect to a specific internet-connected network access point. All devices must use an APN to connect to the internet. But not all devices need to route their data through a private, separately-secured tunnel (or VPN).
If you need a VPN, there are a few ways to implement one for an IoT deployment.
Option 1: VPN at the device level
The first option is to implement VPN software on each device. This option gives end-to-end coverage.
Option 2: VPN at the gateway with a custom private APN
In some cases, teams can set up a VPN at the gateway layer to their own server. In that instance, you may need to set up a custom private APN first.
Static IP addresses and custom private APNs
Teams often pair a static IP address with a custom private APN. A known address lets servers allowlist and reach each device, and lets teams route that traffic through a VPN tunnel. When an APN assigns a static public IP, that address becomes the device's distinctive IP.
Our APN guide explains how APNs are structured, including static public IP on an APN. Our guide to private APN and VPN setup shows how the pieces fit together.
To find the best solution for your IoT deployment, it's important to identify your specific needs. Your connectivity provider should be able to walk you through all options and help you arrive at the right choice for your deployment.
Does Hologram offer a private APN and VPN?
Yes. Hologram is a cellular connectivity and SIM management provider, and we created our secure, plug-and-play private APN solution specifically with IoT innovators' needs in mind. It meets security best practices, including device separation, and it comes standard.
For use cases that need more customization, our team can walk you through whether a custom private APN or VPN solution suits your deployment. Our global IoT SIM card also includes stolen SIM prevention and behavior detection as standard.
End-to-end encryption means Hologram and its partners have zero access to customer and end-customer device data. Learn more about Hologram's SDN security.
Ready to choose the right APN and VPN setup for your fleet? Talk with an IoT expert
FAQs
Are APN and VPN the same?
No. An APN sets how a cellular device connects to a network and which connectivity rules apply. A VPN adds an encrypted tunnel on top of that connection to protect data in transit.
Do all IoT devices need a VPN?
No. Every cellular IoT device needs an APN, but a VPN is optional. Teams usually add one in heavily regulated industries or when devices handle sensitive information, like patient data.
Is a private APN secure without a VPN?
A private APN separates device traffic from the wider network, and that separation suits many IoT use cases. Use cases that handle sensitive data may still need the encrypted tunnel a VPN adds.
Which APN type is better for IoT?
It depends on your use case. A public APN handles routine tasks with no additional setup. A private APN suits IoT fleets that need traffic separation, a static IP, or access to a specific point of presence.
Does an APN affect connection speed?
Incorrect APN settings can cause connection failures or sluggish speeds. With the right settings in place, your APN choice mainly sets traffic routing and security.
