1
Reply

what is the wrong???

Ask a question
students552

students552

19y
2.1k
1
I have a big problem : I'm also trying to control the port[open port , close port ,...] and i write the following code in C#: Socket serialPort1 = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); System.Net.IPAddress LocalIPAddress = System.Net.IPAddress.Parse("127.0.0.1"); System.Net.IPEndPoint LocalEndPoint = new System.Net.IPEndPoint( LocalIPAddress,80 ); serialPort1.Connect(LocalEndPoint); serialPort1.Blocking = false; serialPort1.Shutdown(SocketShutdown.Both); serialPort1.Close(); I think after the program execute i cann't open any web page because the port (80) as the http and when i closed it i cann't open any web page . but in fact after the program execute not happened any thing i can also open any web page ????!!!!! what is the wrong in last code ????!!! Please some one help me thanks

Answers (1)