How to run local web server and package it with unreal engine


I am learning Unreal Engine but I have some questions.

I created a web server where locally I can communicate Unreal Engine with my API . I would like to embed this web server with my game, package my game and run this web server in the PC of the player.

I saw some developers are creating a Java web server and they embed this server in unreal and they can communicate with unreal using HTTP.

In my case I built my web server with ASP.NET Web API NET 5 .

Thank you for your help!