I was trying to run a sample code where I want to connect to 127.0.0.1 using port number 27077. But always get the above error.
try { this.client = new TcpClient(); this.client.SendTimeout = 3000; this.client.ReceiveTimeout = 3000; this.client.LingerState.Enabled = true; this.client.LingerState.LingerTime = 0; this.client.NoDelay = true; this.client.Connect("127.0.0.1", 27077); } catch (SocketException ex) { }
Can anyone suggest on this?
Thanks, Srinivasa Rao Dhulipalla Dotnet4Techies