Back to product page

Start method


Starts WEB server.

Type

Void

Syntax

  • C#
  • VB.NET
Void Start();

Void Start(Int32 Port);
The Start(Port) syntax has these parts:
PortPort number where new connections are accepted.

Sub Start()

Sub Start(ByVal Port As Int32)
The Start(Port) syntax has these parts:
PortPort number where new connections are accepted.

Remarks

Start Method will make your WEB server 'alive' and force it to:
  • bind to your local port (default 80 for HTTP protocols) on selected interface,
  • listen for incoming connections,
  • set Activated property to True,
  • accept incoming connections,
  • create WebUser object for each new connection, and fill in respective RemoteIP and TimeConnected properties
If you get an error when you call this method, usually it will be related to inability of wodWebServer.NET to bind and listen on selected port. In such cases, check your running applications if there is already some other server running on same port.

Before starting server, you should setup several properties that will determine behavior of your server, such as Timeout, ServerName, Port.... Just by leaving default values will make your server work as expected, but in 'real life' you should choose your own values for these properties. To shutdown the server, call Stop method.

Platforms

Windows