public ClientGUI(string host, string name) { InitializeComponent(); socket = new ClientSocket(); socket.Start(IPAddress.Parse(host), 3306); //socket.Start("127.0.0.1", 11000); //socket.Start(Dns.GetHostEntry(Dns.GetHostName()).AddressList[0], 11000); thread = new Thread(GetMessage); thread.Start(); socket.SendMessage(name); }