Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is a simple web server by C#.

License

NotificationsYou must be signed in to change notification settings

yoshi389111/SimpleHttpServer.cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a simple web server for Windows.

Tip

Compile with the C# compiler installed by default on Windows.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe

How to build

Compile as below:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe SimpleHttpServer.cs

Alternatively you can usebuild.bat .

Usage

usage: SimpleHttpServer [-r DIR] [-p PORT] [-b ADDR]    or SimpleHttpServer [-r DIR] [-t]    or SimpleHttpServer [-r DIR] [-P PREFIX]

options:

  • -r DIR : Specify the document root. The default is the current directory.
  • -p PORT : Specify the port number to listen on. The default is 8000
  • -b ADDR : Specify the address to bind to. The default is to accept all addresses.
  • -t : Use a prefix that does not require admin privileges (http://+:80/Temporary_Listen_Addresses/)
  • -P PREFIX : specify a prefix.

Administrative privileges are required unless the-t option is used.

License

Copyright (C) 2023 SATO, Yoshiyuki

This software is released under the MIT License.https://opensource.org/licenses/mit-license.php

About

This is a simple web server by C#.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp