Shut Off TCP/IP Port.

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Anyone ever write code to close a tcp/ip port using vb.net code?

Sample code?
 
Public Sub Disconnect()
Try
Client.Shutdown(SocketShutdown.Both)
Catch
End Try
Client.Close()
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top