Microphone icon indicating copy to clipboard operation
Microphone copied to clipboard

Microphone.Core.Configuration FreeTcpPort() returns static 8181 port

Open dustinchilson opened this issue 8 years ago • 2 comments

I installed the Nuget Packages, which seem to be based on the DotNetCore branch and the Microphone.Core.Configuration.FreeTcpPort() method seems to have debugging code still in it.

dustinchilson avatar Apr 05 '16 20:04 dustinchilson

Probably because if you clone repository and go into Configuration class this is what would you see

private static int FreeTcpPort()
        {
            return 8181;
            //var l = new TcpListener(IPAddress.Loopback, 0);
            //l.Start();
            //var port = ((IPEndPoint)l.LocalEndpoint).Port;
            //l.Stop();
            //return port;
        }

If want to write your own FreeTcpPort method just uncommend the code above,

CezaryRynkowski avatar Apr 27 '16 14:04 CezaryRynkowski

Resolved in a548e9cf

CezaryRynkowski avatar Mar 28 '17 09:03 CezaryRynkowski