Skip to content
M2M.globalGet early access

Private APN vs public APN vs VPN for IoT

Updated

A public APN connects devices to the internet through a gateway shared with other customers; a private APN is reserved for one customer and connects devices only to that customer’s network, with addresses from its own range; a VPN is software on the device that encrypts its traffic but does not, by itself, take the device off the internet. For fleets that must not be reachable from the internet, a private APN is the network-level answer; a VPN is the device-level one.

Key takeaways

Side by side

Public APNPrivate APNVPN on the device
Who uses itMany customersOne customerOne device
Device addressShared or public IPPrivate IP from your rangeWhatever the APN gives, plus a tunnel address
Reachable from the internetYes, if public IPNoYes, unless the APN prevents it
Where traffic goesInternetYour cloud or datacenter onlyYour VPN server, over the internet
Software on the deviceNoneNoneVPN client
Extra data per packet00about 60 bytes
Works on NB-IoT / LTE-M sensorsYesYesOften impractical
Typical costIncluded in the data priceSet-up and monthly fee per APN and per destinationServer and maintenance

Why “about 60 bytes” matters

A WireGuard packet over IPv4 carries an outer IP header (20 bytes), a UDP header (8 bytes), a WireGuard data header (16 bytes) and an authentication tag (16 bytes): 60 bytes added to every packet. IPsec in tunnel mode adds a similar amount. A sensor that sends 100-byte messages therefore uses 60 percent more data with a VPN, and its modem stays awake longer, which costs battery. A private APN adds nothing on the device: the separation is done in the mobile core network.

When to choose which

  1. Prototype, a few consumer devices, no sensitive data: public APN; protect the server with TLS.
  2. Fleet that must be unreachable from the internet (cameras, PLCs, payment terminals, medical devices): private APN, delivered into your cloud or datacenter. See private delivery.
  3. Data that must stay encrypted end to end, whatever the network: keep TLS (or a VPN on capable devices) on top of the private APN. The two are complementary.

Limits

Frequently asked questions

What is an APN?

An APN (Access Point Name) is the name a cellular device uses to tell the mobile network which packet data network it wants to reach. 3GPP defines its format in technical specification TS 23.003.

What is the difference between a public APN and a private APN?

A public APN is shared by many customers and leads to the internet. A private APN is dedicated to one customer: its devices get addresses from the customer's own range and their traffic goes only to the customer's network.

Is a private APN more secure than a VPN?

They protect different things. A private APN keeps devices off the internet entirely; a VPN encrypts traffic from the device but the device may still have an internet-facing address. Many fleets use a private APN and keep TLS between device and server.

How much data does a VPN add on a cellular IoT device?

Around 60 bytes per packet. A WireGuard packet over IPv4 adds 20 bytes of outer IP header, 8 of UDP, 16 of WireGuard header and a 16-byte authentication tag. On a 100-byte sensor message, that is 60 percent more data.