C# – First steps with C# and .NET – part 050.

In this tutorial, I will show you how to receive network traffic with a simple C# code source.
First, create one folder named NetConsole and go in this with these commands:

Run the install for DotNet, you can add a package if you want:

You can see the version of this project and list all templates with these two commands:

Start one new console project with this command:

Change the default content for Program.cs with this source code:

You can run the program with this command:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.