C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,204 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I can't seem to find it anywhere. I'm trying to make a simple app that creates a localhost and listens for client's HTTP GET request from browsers and sends the html response, using TCPListener and TCPClients.
If you want to listen for HTTP requests & send HTTP responses it makes sense to try HttpListener
instead of TcpListener
:
https://learn.microsoft.com/en-us/dotnet/api/system.net.httplistener?view=net-6.0#examples