S
S
Sergey2021-07-31 21:40:43
ASP.NET
Sergey, 2021-07-31 21:40:43

How to run an ASP.NET Core application without a server?

Is it possible to run an ASP.NET Core application on a PC so that it is accessible from the internet? I suppose that perhaps some kind of proxy servers are needed that will broadcast incoming requests to them on my PC through some communication channel.
Or configure somehow FireWall

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rPman, 2021-07-31
@Quttar72

Yes, you install it on the machine (with asp.net support it is built into windows starting from 7, although it is possible that the home version of the OS will require handshaking, but pro or ultimate is definitely there) IIS
If you open the server port on your router (this NAT section is also sometimes called the option - virtual server), then even without proxying your site will become available.
An https certificate can also be installed.
instructions
carefully, on a working machine, any trojan that can be slipped into you in 100500 ways will be able to steal the server certificate from you, and this will give an attacker, for example, the opportunity to attack your clients if they enter through, for example, unreliable wifi.

V
Vasily Bannikov, 2021-08-01
@vabka

You just need to enable Kestrel (it is already enabled in the standard asp net core template) and do it. Then you just run the
dotnet publish -c Release -r win-x64 -o ./dist
./dist executable . nginx/IIS/whatever and add https

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question