Results 1 to 3 of 3

Thread: Simple web server in pure VB.Net code.

  1. #1

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Simple web server in pure VB.Net code.



    I wrote a small web server as a sample in this thread but ended up getting a bit carried away and adding a bunch of stuff to it. I decided to release it as a teaching tool since it gives a bit of insight into how web servers actually work. It shows how 404 errors, favicons, redirects and downloads work, among other things.

    Please note that this is not the way you want to build a real website. If you want to build a real web site or web app it is best to do so with the technologies that were made for it like ASP.Net or Blazor. This project is for demonstration and learning purposes, not for building real websites.

    You will need Visual Studio 2019 and .Net 5 to open and compile this project.

    The following video demonstrates the web server in operation, executed on both Windows 10 and Ubunto 20.4:-
    Attached Files Attached Files
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  2. #2
    Fanatic Member coolcurrent4u's Avatar
    Join Date
    Apr 2008
    Location
    *****
    Posts
    993

    Re: Simple web server in pure VB.Net code.

    Quote Originally Posted by Niya View Post


    I wrote a small web server as a sample in this thread but ended up getting a bit carried away and adding a bunch of stuff to it. I decided to release it as a teaching tool since it gives a bit of insight into how web servers actually work. It shows how 404 errors, favicons, redirects and downloads work, among other things.

    Please note that this is not the way you want to build a real website. If you want to build a real web site or web app it is best to do so with the technologies that were made for it like ASP.Net or Blazor. This project is for demonstration and learning purposes, not for building real websites.

    You will need Visual Studio 2019 and .Net 5 to open and compile this project.

    The following video demonstrates the web server in operation, executed on both Windows 10 and Ubunto 20.4:-
    Is it possible to return actual web pages with form and process them upon POST request?
    Programming is all about good logic. Spend more time here


    (Generate pronounceable password) (Generate random number c#) (Filter array with another array)

  3. #3

    Thread Starter
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: Simple web server in pure VB.Net code.

    Quote Originally Posted by coolcurrent4u View Post
    Is it possible to return actual web pages with form and process them upon POST request?
    Of course you can. It is a real web server in every sense of the word. It's just a skeleton implementation without all the bells and whistles of a production quality web server. POST functionality can be added to it.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width