Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

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

Open
dustinchilson opened this issue Apr 5, 2016 · 2 comments
Labels

Comments

@dustinchilson
Copy link

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.

@CezaryRynkowski
Copy link

CezaryRynkowski commented Apr 27, 2016

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
Copy link

Resolved in a548e9c

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants