Back to Blog|LoRaWAN Guides

Building a Private LoRaWAN Network: Components, Hardware, and Steps with ChirpStack

May 29, 2026
Timo WevelsiepTimo Wevelsiep
chirphost

Building a Private LoRaWAN Network: Components, Hardware, and Steps with ChirpStack

Build a private LoRaWAN network: components, hardware selection, and ChirpStack setup step by step – with data sovereignty and no per-device costs.

chirphost.de Blog

Content notice: The information in this article was compiled to the best of our knowledge at the time of publication. Technical details, pricing, versions, licensing models and external content are subject to change. Please verify the information independently, especially before making business-critical or security-relevant decisions. This article does not constitute individual professional, legal or tax advice.

WZ-IT operates chirphost. Current hosting starts from €129.90 net/month; setup and service level follow the proposal. Former package prices, location lists and cost comparisons in this dated article describe the previous offer, not current WZ-IT terms. View current service scope.

Anyone who wants to collect sensor data over long distances with minimal power consumption can hardly avoid LoRaWAN. The radio protocol bridges several kilometers in open terrain, lets battery sensors run for years, and is suitable for everything from soil-moisture measurement through asset tracking to fill-level monitoring in industry. The central question when building one, however, is not only "which sensors," but: public or private network?

Public networks such as The Things Network are ideal for first experiments. But as soon as proprietary or personally identifiable data is involved, or a larger sensor fleet is operated, data sovereignty, cost structure, and independence clearly argue for your own private network. This is exactly where ChirpStack comes in – the world's most widely used open-source LoRaWAN network server, which provides the functions of a telecom operator on your own server, without per-device license costs. This article explains the components of a private LoRaWAN network, helps with hardware selection, and walks through the steps of the ChirpStack setup – including the honest pitfalls in practical operation.

Also worth reading: ChirpStack vs. The Things Stack · ChirpStack Hosting: Managed vs. Self-Hosted


What LoRaWAN is and what it is suited for

LoRaWAN stands for Long Range Wide Area Network and is a radio protocol for the Internet of Things. It is optimized to transmit small amounts of data over long distances with very low energy consumption. A typical LoRaWAN sensor sends a few bytes every few minutes – a measurement, a meter reading, a status message – and runs for years on a single battery.

These characteristics make LoRaWAN the first choice for applications where cellular would be too expensive or too power-hungry and Wi-Fi too short-range: smart metering for water and heat utilities, environmental and machine sensing in industry, soil-moisture and weather stations in agriculture, occupancy and air-quality sensors in smart buildings, level and parking measurement in municipalities.

LoRaWAN has three device classes. Class A is the power-saving standard: each uplink is followed by two short receive windows, otherwise the device sleeps. Class B adds scheduled downlink windows at fixed times, Class C keeps the receiver continuously open – faster to reach, but more energy-hungry. In Europe, and thus in the DACH region, LoRaWAN operates in the license-free EU868 frequency band. License-free means no frequency application is needed. However, a transmission-time restriction (duty cycle) applies, which limits the maximum message frequency per device – a point that becomes relevant in dense networks.


Private or public? When your own network pays off

Public LoRaWAN networks such as The Things Network are free, quickly available, and excellent for testing. For productive enterprise use, however, three reasons argue for a private network:

  • Data sovereignty: In a private network, the gateway speaks exclusively with your own server. The data never leaves your own infrastructure – relevant for GDPR, security regulations, and trade secrets.
  • Cost structure: Commercial LoRaWAN platforms often bill per device per month. With thousands of sensors, this subscription model scales uncomfortably. Your own network has no per-device software costs after the one-time gateway investment when self-hosted.
  • Control and independence: No dependence on the availability or business decisions of a third-party provider.

To stay honest: for experiments, prototypes, or projects with few sensors in a region with good TTN coverage, a public network is perfectly sufficient – and the fastest start. The shift to a private network pays off for productive, data-sensitive, or large deployments. If you already run devices on the public network, you do not have to start from scratch: the matching guide shows how to migrate an existing fleet from TTN to ChirpStack. The direct architecture comparison is in ChirpStack vs. The Things Stack.


The components of a private LoRaWAN network

A private LoRaWAN network consists of a few clearly delimited building blocks:

Component Function
End devices / sensors Send encrypted radio packets (LoRa modulation)
Gateway Receives the radio packets via the antenna and forwards them – a "dumb" packet forwarder with no logic of its own
Gateway bridge Converts the gateway's UDP packets into MQTT messages (runs on the gateway or centrally)
Network server (ChirpStack) The heart: device authentication, deduplication of multiply received packets, routing, adaptive data rate
Application integration Forwards the decoded payload – to PostgreSQL, MQTT, Grafana, ThingsBoard, or your own application

The data flow in one sentence: sensor sends an encrypted radio packet → gateway receives and forwards it as UDP → gateway bridge converts it to MQTT → ChirpStack authenticates, deduplicates, and decodes → integration passes the payload to the target application.

ChirpStack has established itself as the de facto standard for the network-server layer because it is open source, comes with a web interface to manage gateways, devices, and tenants, and can be extended via a gRPC API. Since ChirpStack v4, the network server and application server are merged into a single service, configured via a central chirpstack.toml plus region-specific region_*.toml files – which simplifies operation considerably compared to the separate v3 architecture.


Choosing hardware

Gateways

The gateway is the most important hardware decision. For indoor applications or small pilot projects, an 8-channel gateway from vendors like RAK Wireless (e.g. RAK7268) or Dragino is enough. For outdoor coverage, industrial environments, or larger areas, more robust devices from Kerlink, Multitech, or Robustel make sense – often with LTE backhaul for sites without a fixed line. The correct frequency band (EU868 in DACH) and the antenna position are decisive: the latter influences the range more than the gateway brand.

Sensors

The sensors depend on the use case – temperature, air quality, fill level, soil moisture, tracking, meter readings. Common EU868 vendors are Dragino, Milesight, and Elsys. It is important that the sensors are LoRaWAN-certified and provide or document a matching payload codec so that ChirpStack can decode the raw data.

Server requirements

ChirpStack itself is frugal. The stack runs as a Docker Compose setup of ChirpStack, PostgreSQL, Redis, and an MQTT broker (e.g. Mosquitto). For a pilot or small production network, a small server is enough. As the device fleet grows, database sizing and MQTT broker tuning become relevant.


Setting up ChirpStack – the steps at a glance

The following is an architecture roadmap, not a complete tutorial – it shows the order of steps from an empty server to the first received sensor value:

  1. Deploy ChirpStack – start a Docker Compose stack of ChirpStack, PostgreSQL, Redis, and Mosquitto. In chirpstack.toml, enable the EU868 region and set the parameters including net_id in the corresponding region_eu868.toml.
  2. Configure the gateway – set up the packet forwarder or ChirpStack gateway bridge on the gateway, with the server's MQTT broker as the target. Optionally mutual TLS with per-gateway client certificates.
  3. Register the gateway – create the gateway EUI in the ChirpStack web interface.
  4. Create a device profile – set the LoRaWAN version, regional parameters, and device class (A/B/C).
  5. Add sensors – enter the DevEUI and AppKey, store the payload codec.
  6. Join procedure – the sensor performs the OTAA join and appears in the live frame log.
  7. Set up the integration – connect PostgreSQL, MQTT, Grafana, or ThingsBoard for data forwarding.

At the latest at the live frame log, it becomes clear whether the gateway, bridge, broker, and server work together correctly – the most common point where errors surface in practice.


The caveats in practical operation

A private network is not "set and forget." These points should be planned for realistically:

  • Duty cycle: EU868 is license-free but subject to a transmission-time restriction (typically 1% per sub-band). This limits the message frequency per device – relevant in dense deployments.
  • Gateway placement: The range depends massively on antenna position and environment. An indoor gateway does not cover what an outdoor gateway with a high antenna achieves.
  • Configuration complexity: The interplay of packet forwarder, gateway bridge, MQTT broker, and network server is error-prone and partly poorly documented. This is where most time is lost in practice.
  • Scaling: As the fleet grows, database tuning, MQTT broker sizing, and backup strategy become a continuous task.
  • Monitoring: Gateway reachability, packet loss, and sensor battery levels need to be monitored, otherwise an outage is only noticed when data is missing.

Self-hosted or managed?

Self-hosting ChirpStack gives full control and incurs no ongoing license costs – but it is exactly the operational effort from the previous section: server, MQTT broker, database, backups, updates, monitoring, and scaling. For a small pilot project with a technical team, that is perfectly legitimate.

A managed solution takes over this operational load and delivers a ready-to-use network server. You then only deal with gateways and sensors. This makes sense when there is no dedicated team for continuous operation or when the network runs productively and business-critically. The honest trade-off with concrete criteria is in ChirpStack Hosting: Managed vs. Self-Hosted; how ChirpStack compares to a commercial enterprise platform is shown in ChirpStack vs. Actility ThingPark.

What the managed route looks like in practice is shown by managed ChirpStack hosting in German data centers: a dedicated instance, MQTT broker, backups and updates included.


Data sovereignty and compliance

The strongest reason for a private network in the DACH market is data sovereignty. LoRaWAN encrypts the radio transmission by default with AES-128 on the network and application layers – so the transmission itself is secured. The actual compliance question is where the data flows afterward:

  • GDPR: If sensors capture personally identifiable data (e.g. occupancy or tracking sensors), GDPR applies. A private network keeps the data in your own infrastructure – cleaner for data-protection documentation than a US-cloud LNS.
  • EU Data Act: Who owns the sensor data of a connected product, and in what format it must be accessible, is governed by the EU Data Act for LoRaWAN sensor data – with the design obligation taking effect on 12 September 2026 for newly placed products.
  • Federal Network Agency: The EU868 duty-cycle rules must be observed.
  • NIS2: In critical-infrastructure sectors (energy, water), IoT networks fall under the security requirements – encryption and access control are subject to documentation.

With a German managed provider, the network server itself additionally stays in EU-sovereign infrastructure – the entire chain from the sensor through the gateway to the server is then within your own area of responsibility.

Note: not legal advice. For specific compliance questions, consult data-protection and legal advisers.


New article: German building owners face a deadline on 31 December 2026: remote-readable meters under the Heating Cost Ordinance and where LoRaWAN fits.

Conclusion

A private LoRaWAN network is not rocket science, but it is also not plug-and-play: with sensors, a gateway, a gateway bridge, ChirpStack as the network server, and an integration, the architecture is in place – the stumbling blocks lie in configuring the components, gateway placement, and ongoing operation. Anyone who wants data sovereignty, predictable costs without a per-device subscription, and full control is exactly right with their own network built on ChirpStack.

Managed ChirpStack from chirphost takes over the most demanding part – operating the network-server layer:

  • ✓ ChirpStack v4 ready to run, without configuration stumbling blocks
  • ✓ PostgreSQL, MQTT broker, backups, updates, and monitoring included
  • ✓ Network server in German infrastructure (data sovereignty)
  • ✓ No per-device software costs
  • ✓ Try it free for 7 days

What the plans cost and which plan fits which fleet size is set out in the pricing for managed ChirpStack.

Agree scope and provisioning with WZ-IT. Provisioning and contract terms are agreed with WZ-IT in the proposal. There is no self-service portal or automatic trial subscription.

Read more: ChirpStack vs. The Things Stack and ChirpStack Hosting: Managed vs. Self-Hosted.

If you would rather not operate the network layer yourself, scope, SLA and the eight regions are covered on the rent a LoRaWAN network server page.


Sources

Frequently Asked Questions

What is a private LoRaWAN network?▼
A private LoRaWAN network is a self-contained radio network for IoT sensors in which the entire infrastructure – from the sensors through the gateways to the network server – is under your own control. Unlike public networks such as The Things Network, the sensor data never leaves your own infrastructure. The gateway forwards the received radio packets exclusively to your own server. It is used for data-sensitive or large-scale IoT applications in industry, buildings, agriculture, and municipalities.
Which components do I need for a LoRaWAN network?▼
Four main components: first, the sensors or end devices that send encrypted radio packets. Second, a gateway that receives these packets via the antenna and forwards them – it makes no decisions itself. Third, the network server, here ChirpStack, which authenticates devices, deduplicates packets received more than once, and routes the data. Fourth, an integration that passes the decoded data on to the target application, for example a database, Grafana, or an IoT dashboard. In between runs the gateway bridge, which translates radio packets into MQTT messages.
What is ChirpStack?▼
ChirpStack is the world's most widely used open-source LoRaWAN network server. It handles the central logic of a LoRaWAN network – device management, authentication, deduplication, and data forwarding – and offers a web interface and an API. Since version 4, the network server and application server have been merged into a single service. ChirpStack is multi-tenant, multi-region capable, and integrates with databases, MQTT, Grafana, ThingsBoard, and major cloud providers.
What is the range of LoRaWAN?▼
The range depends heavily on the environment. In open terrain with a good antenna position, several kilometers are possible; in densely built-up urban areas, more like a few hundred meters to a few kilometers. Obstacles such as buildings, walls, and vegetation reduce the range significantly. The placement of the gateway – as high and unobstructed as possible – is the most important factor for the covered area.
Private or public LoRaWAN – which is better?▼
It depends on the use case. Public networks such as The Things Network are free, quickly available, and ideal for testing or for projects with low sensor density. But they hit limits when proprietary or personally identifiable data is involved or when a large device fleet is operated. A private network offers full data sovereignty, no dependence on a third-party provider, and no per-device software costs. The price for this is the investment in your own gateways and the operational effort for the network server. For productive, data-sensitive enterprise deployments, the private network is usually the right choice.
What does building a private LoRaWAN network cost?▼
The main costs are one-time: the gateways and the sensors. An entry-level gateway costs in the low three-figure range, industrial outdoor gateways considerably more. Sensors vary by type. The decisive difference from commercial platforms lies in the software: ChirpStack is open source and incurs no per-device license costs when self-hosted. This eliminates the subscription model that weighs heavily with large sensor fleets. Ongoing costs come from server operation and maintenance – either as your own working time when self-hosting or as a flat rate with a managed solution.
Is LoRaWAN data secure and GDPR-compliant?▼
LoRaWAN encrypts the radio transmission by default with AES-128 on two layers – the network and application layers. This protects the data over the air. The GDPR question only arises when sensors capture personally identifiable data, such as occupancy or tracking sensors. Here a private network has a clear advantage: the data stays in your own infrastructure and does not run through an external cloud service. This simplifies data-protection documentation and the data-processing question. With a German managed provider, the network server additionally stays in EU-sovereign infrastructure.
Which gateway should I choose?▼
It depends on the location and density. For indoor applications or small pilot projects, an 8-channel gateway from vendors like RAK Wireless or Dragino is enough. For outdoor coverage, industrial environments, or larger areas, more robust gateways from Kerlink, Multitech, or Robustel make sense, often with LTE backhaul for sites without a fixed line. Choosing the correct frequency band is important – EU868 in the DACH region. The antenna position influences the range more than the gateway brand, so effort on mounting pays off.
Should I self-host ChirpStack or have it managed?▼
Both are legitimate. Self-hosting gives full control and incurs no ongoing license costs but requires effort: server, MQTT broker, database, backups, updates, monitoring, and scaling all have to be operated yourself. The interplay of the components is, in practice, error-prone. A managed solution takes over this operational load and delivers a ready-to-use network server, so you only have to deal with gateways and sensors. Managed makes sense when there is no dedicated team for continuous operation or when the network runs productively and business-critically. For small pilot projects with a technical team, self-hosting is enough.
How quickly can I start with a private LoRaWAN network?▼
A pilot setup with one gateway and a few sensors can be built in a few days – hardware procurement is usually the longest step. The ChirpStack server is quickly deployed via Docker, and connecting the gateway and adding the first devices take a few hours. With a managed solution, the server setup is eliminated, so the focus goes straight to gateway placement and sensor integration. The jump from pilot to a productive network then requires more planning for coverage, scaling, and monitoring.
Timo Wevelsiep

Written by

Timo Wevelsiep

Co-founder, WZ-IT

Founder of WZ-IT. Managed ChirpStack LoRaWAN hosting. Focused on IoT infrastructure, LoRaWAN deployments and scalable device management.

LinkedIn

Request Managed ChirpStack

We operate your dedicated ChirpStack instance including hosting, updates, monitoring and support. Tell us how many gateways, devices or integrations you are planning. We'll get back to you within 24 hours.

Your contacts at WZ-IT

Timo Wevelsiep and Robin Zins

Founders of WZ-IT

Discuss your project with Timo and Robin

By submitting, you agree to our Privacy Policy.