I want to create an application where an device posts data to a certain address using JSON, and then a console application on that address prints out the posted data.
To do so, i thought it would be good to use a web server.
Is there any (open source) Asp.Net web servers that i can embed into my C# program to capture posted data to the web server?
As suggested in the comment, you can create a small “web servlet” using a HTTPListener. This article demonstrates how to build one.