VB.NET Server Socket Program
The Socket Programming has two sections.
1. Server Socket Program
The Server Socket Program here is a VB.NET Console based Application . This program act as a Server and listening to clients request . We assign Port 8888 for the Server Socket , it is an instance of the VB.NET Class TcpListener , and call its start() method.
Dim serverSocket As New TcpListener(8888) serverSocket.Start()
Next step we are creating an infinite loop for continuous communication to Client . When Server get the request , it reads the data from NetworkStream and also write the response to NetworkStream .
Create a new VB.NET Console Application Project and put the following source code into project.
The next part of this section is Client Socket Program . After create the Client Socket Program , you should first start the Server Socket Program and then start the Client Socket Program . If you need more details about this tutorial please refer to Socket Programming Section .
- How to send email from VB.NET
- VB.NET Send email using CDOSYS
- How to find IP Address of Host
- How to read a URL Content
- VB.NET Socket Programming
- VB.NET Client Socket Program
- VB.NET MultiThreaded Socket Programming
- VB.NET MultiThreaded Server Socket Programming
- VB.NET MultiThreaded Client Socket Programming
- VB.NET Chat Server Program
- VB.NET Chat Server
- VB.NET Chat Client
- VB.NET Email Attachment
- How to VB.Net Web Browser