Click here to Skip to main content
15,746,107 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sometime sending HTML text to the browser and the nother time not working
that is the code :

static void Main(string[] args)
           TcpListener les = new TcpListener(IPAddress.Parse(""), 443);
           while (true)
               Console.WriteLine("Waiting Connection...." + les.Server.LocalEndPoint);
               TcpClient tcp = les.AcceptTcpClient();
               Thread A = new Thread(new ParameterizedThreadStart(TransmatingWithThreading));


Please any body feesback me
Thanks alot

1 solution


I think you're trying to create a local web server. In that case, I recommend to use a System.Net.HttpListener[^] instead of a TcpListener.
Have also a look at my Tip:
Create a local server in C#[^]

Hope this helps.
Share this answer
Tarek Selem 15-Apr-13 3:29am    
Realy thank u..
Thomas Daniels 15-Apr-13 12:09pm    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900