I am writing web application on asp.net and want to run TcpListener on the background script.
Actually everything is simple: Server or TcpListener will run on some concrete static IP address, and on 2000 port (it is not in use anywhere), and wait for client. Client is some application with TcpClient which will connect to server. I write such working applications on C#. So I just implement such app in background C# code. In the most of answers here it is problem of port or IP, but in my case, these staff is OK.
Server is running on this IP, because I cant start another such kind of application on this IP. But this TcpListener do not accepting incoming connections.
I am beginner in ASP.net and will be happy if you can help me. Thank you in advance.