Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

No connection could be made because the target machine actively refused it 127.0.0.1:27077

$
0
0

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



Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>