public ClientModel(string IP = null, int port = 452, int bufferSize = 2000)
        {
            if (string.IsNullOrEmpty(IP))
            {
                IP = LocalHost.MyLocalIPAddress();
            }

            this.IP    = IP;
            this.port  = port;
            client     = new TcpClient();
            BufferSize = bufferSize;
            State      = NetworkStates.Initialized;
        }
        public ServerModel(string IP = null, int port = 452, int bufferSize = 2000)
        {
            if (string.IsNullOrEmpty(IP))
            {
                IP = LocalHost.MyLocalIPAddress();
            }

            this.BufferSize = bufferSize;
            this.IP         = IP;
            this.port       = port;
            ipAd            = IPAddress.Parse(IP);
            server          = new TcpListener(ipAd, port);

            State = NetworkStates.Initialized;
        }