internal void Start() { Initialize(); var ip = APPHelper.GetLocalIP(); if (ip != null) { Log("Starting VM Request listener at local IP: " + ip.ToString(), true); try { mListener = new TcpListener(ip, Definitions.mPortNumber); mListener.Start(); BeginAcceptConnection(); } catch (Exception ex) { Log("Exception: " + ex); } } else { Log("Failed to get local IP"); } }
internal void Start() { var ip = APPHelper.GetLocalIP(); if (ip != null) { Log("Starting StatusRequest listener at local IP: " + ip.ToString(), true); mListener = new TcpListener(APPHelper.GetLocalIP(), Definitions.mTestServerControlPortNumber); mListener.Start(); BeginAcceptConnection(); } else { Log("Failed to get local IP"); } }