# Tor: How do I host an onion service?

Run a local web service, install and configure Tor, and map an onion service port to the local service as shown in the Tor Project's setup guide.

2026-08-19
::
Switchboard Tech Services


![Tor: How do I host an onion service?](https://switchboardtechservices.com/static/images/defaults/guides.webp)

## Short answer

Run a local web service, install and configure Tor, and map an onion service port to the local service as shown in the Tor Project's setup guide. Tor creates a `.onion` address and private key in the service directory. Test from Tor Browser, protect the key, and harden the web application itself; onion routing does not repair application vulnerabilities.

## Sources

[Tor Project: Set up an onion service](https://community.torproject.org/onion-services/setup/).

- Categories:
  [Tor](https://switchboardtechservices.com/guides/categories/tor/)
- Tags:
  [#tor](https://switchboardtechservices.com/guides/tags/tor/), [#Onion Services](https://switchboardtechservices.com/guides/tags/onion-services/), [#Online Privacy](https://switchboardtechservices.com/guides/tags/online-privacy/), [#Tor Network](https://switchboardtechservices.com/guides/tags/tor-network/)

[Guides RSS](https://switchboardtechservices.com/feeds/guides.xml "Subscribe using an RSS reader")

---

Canonical URL: https://switchboardtechservices.com/guides/tor-how-do-i-host-an-onion-service/

Language: en-us

Content type: guide

Author: Switchboard Tech Services

Published: 2026-08-19T12:36:43+00:00

Description: A practical answer to How do I host an onion service?
