This is the error screenshotWhile I was writing TcpClient-Server Program in Vs2017 following issues came.
Console.WriteLine("Waiting for a connection.....");
Socket s=myList.AcceptSocket();
Console.WriteLine("Connection accepted from " + s.RemoteEndPoint);`
It says that the TcpListner does not contain a does not contain such method. Please help. Full code can be found at https://www.codeproject.com/Articles/1415/Introduction-to-TCP-client-server-in-C
Thanks and Regards, T.S.
What was happening in above code is Instead of using .NET Framework Console app what was using was .NET Core which isn't the compatible one which gave the error. The reason was that MS site was using .NET Core for all previous programs and though same for this.