Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Core
  3. Dotnet Serve

Dotnet Serve

Apache-2.0C#v1.10.194

A simple command-line HTTP/HTTPS server for the .NET Core CLI that serves files from the current directory.

Visit WebsiteGitHubGitHub
870 stars66 forks0 contributors

What is Dotnet Serve?

dotnet-serve is a command-line HTTP/HTTPS server tool for the .NET Core CLI that serves static files from the current directory. It provides a quick way to spin up a local web server for development, testing, or file sharing, with built-in support for HTTPS, reverse proxying, and compression. The tool simplifies common tasks like serving single-page applications or proxying API requests during local development.

Target Audience

.NET developers who need a lightweight, local web server for testing static websites, APIs, or single-page applications without configuring IIS or other web servers. It is also useful for developers working in containerized environments like Docker who require a simple file server.

Value Proposition

Developers choose dotnet-serve for its simplicity, seamless integration with the .NET ecosystem, and robust feature set including HTTPS with developer certificates, reverse proxy support, and configuration persistence. Unlike heavier alternatives, it requires minimal setup and is distributed as a global .NET tool, making it easily accessible from any directory.

Overview

Simple command-line HTTPS server for the .NET Core CLI

Use Cases

Best For

  • Quickly serving static HTML/CSS/JS files during local development
  • Testing HTTPS locally with self-signed or developer certificates
  • Proxying API requests to backend services while developing frontend applications
  • Sharing files locally over HTTP/HTTPS in a development or demo environment
  • Serving single-page applications with fallback file support
  • Running a simple web server inside Docker containers for development or testing

Not Ideal For

  • Production environments requiring high-performance, scalable web servers with load balancing
  • Projects needing server-side rendering, dynamic routing, or server logic beyond static files
  • Teams not using .NET who prefer zero-dependency tools like Python's http.server or Node's http-server
  • Applications demanding fine-grained CORS policies or built-in authentication mechanisms

Pros & Cons

Pros

Easy HTTPS Setup

Supports TLS with default ASP.NET Core developer certificates, custom PEM/PFX files, and simple flags like -S, making local HTTPS testing painless without manual certificate configuration.

Flexible Reverse Proxy

Allows mapping path patterns to backend URLs using ASP.NET routing syntax (e.g., --reverse-proxy), enabling seamless API forwarding during frontend development without additional tools.

Configuration Persistence

Options like port, headers, and compression can be saved to .netconfig files via --save-options, promoting consistency and reducing repetitive command-line arguments across projects.

Lightweight and Integrated

Distributed as a global .NET tool, it requires minimal setup and leverages the .NET ecosystem, such as developer certificates, for a smooth, CLI-focused experience.

Cons

Static-Only Limitation

Cannot handle server-side logic or dynamic content generation; it's strictly for serving static files and proxying, which restricts use cases compared to full web servers.

.NET Runtime Dependency

Requires .NET SDK or runtime installation, adding overhead for non-.NET environments or teams preferring language-agnostic tools.

Basic Security Features

CORS support is all-or-nothing with the -c flag, lacking granular control over origins or methods, and there's no built-in authentication for secured access.

PEM Key Restriction

Only supports RSA private keys for PEM files, as noted in the README, which may complicate setups using other key types like ECC certificates.

Frequently Asked Questions

Quick Stats

Stars870
Forks66
Contributors0
Open Issues1
Last commit4 months ago
CreatedSince 2017

Tags

#reverse-proxy#http-server#webserver#command-line-tool#static-file-server#dotnet#aspnet-core#https-server#dotnet-core#local-development#development-tools

Built With

.
.NET Core
A
ASP.NET Core

Links & Resources

Website

Included in

Core21.2k
Auto-fetched 5 hours ago

Related Projects

AutoMapperAutoMapper

A convention-based object-object mapper in .NET.

Stars10,186
Forks2,416
Last commit10 days ago
HumanizerHumanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities

Stars9,604
Forks1,046
Last commit12 days ago
AngleSharpAngleSharp

:angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.

Stars5,492
Forks590
Last commit12 days ago
markdigmarkdig

A fast, powerful, CommonMark compliant, extensible Markdown processor for .NET

Stars5,210
Forks507
Last commit13 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub