Wednesday, December 10, 2014

How to list all of listening ports in Windows command prompt?

netstat -anb | findstr /R /C:"[LISTENING]"

How to solve problem "No connection could be made because the target machine actively refused it"

#1 reason is: target machine TCP not listening.
Can run following command line to check:
netstat -anb

What is difference between and is localhost. Only same machine can access this address.
But means all of ip addresses binding to this machine.


Workflows of Refactoring

Uri Templates

        var url = new UriTemplate("{tenant}/customers")
            .AddParameter("tenant", "acmé")

        Assert.Equal("", url);