public SocketController(IPAddress ip, int port, string DebugTAG) { DebugTag = new CustomDebug(DebugTAG); DebugTag.WriteLine( $"Created socket with IP: \n\t" + $"IP:{Dns.GetHostName()}\n\t" + $"Port:{port}"); socketServer = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socketServer.Bind(new System.Net.IPEndPoint(ip, port));//34197 EventMessage = new MessageEventController(); }