TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:2660.

When we try implement SDL Web, for most of the existing audience in this community, this error code might seem familiar, but for new bees in the community or for people who are new to SDL Web, this error code is something new and they can’t understand. This might take some time for them to identify the cause and fix this. In fact, I faced the same issue and spent some time to fix this. Finally could fix it help of Venu Ireddy and some extra efforts for me to find the correct service.

 

 

Hence thought to share this in the community which might help others to save their time.

I could fix this this by following steps which as below:

  • Hit Windows Key+ R, type "services.msc".
  • Search for "SDL Web Content Manager Service Host" services is running or not.
  • If status is not "running", right click on it and click on Start.

I hope this article will help you to save sometime and please like article if does so. Please share your comments below and help me to improve myself. Thanks you for your time..  

  • This exception message says you're trying to connect to the same host ( 127.0.0.1 ), while you're stating that your server is running on a different host. This 127.0.0.1 represents a 'loopback' . It allows the computer to communicate with itself via network protocol .

    Dns.GetHostEntry(IPAddress.Loopback).HostName returns the host name of your machine. When you pass a host name to TcpClient , it will resolve it to one or more IP addresses using Dns.GetHostAddresses(hostName) . This includes the public and local IP addresses of your machine (e.g. 192.168.12.10), but not 127.0.0.1 (loopback address). So your client is trying to connect to any of the non-loopback addresses of your machine, while your server is listening only on the loopback address . So, no connection can be established. The solution to this problem is that connect to the same end point your server is listening on.