System.Net.Sockets.SocketeException: An invalid argument was supplied Error Code:10022
问题 I do not know why I am receiving the following error. Can anyone shed some light on this? System.Net.Sockets.SocketeException: An invalid argument was supplied Error Code:10022 [closed] private void btnStart_Click(object sender, EventArgs e) { try { epLocal = new IPEndPoint(IPAddress.Parse(txtIP1.Text), Convert.ToInt32(txtPort1.Text)); sck.Bind(epLocal); epRemote = new IPEndPoint(IPAddress.Parse(txtIP2.Text), Convert.ToInt32(txtPort2.Text)); //Here Error Occures I dont know what is my mistake